@EdwardRuby 找工作难,公司招人也难。刚开始找工作,面试不如意很正常。你向公司要求待遇的时候,公司也会要求你的能力。
一直 screen
omniauth-taobao omniauth-qq-connect omniauth-weibo
Process.setsid
编译 nginx 时加上 --with-http_realip_module
real_ip_header X-Forwarded-For;
proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
还一种配置方法:配置两个 server
server { listen 127.0.0.1:8081; server_name 127.0.0.1; location / { passenger_use_global_queue on; passenger_enabled on; rails_env production; root /var/sites/a/public; } }
server { listen 80; server_name abc.com;
real_ip_header X-Forwarded-For; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_pass http://127.0.0.1:8081;
}
}
用 eventmachine 搭建个服务器