i using private pub 1 of projects. working fine on localhost when deploy on live server giving following error:
errno::econnrefused in commentscontroller#new
connection refused - connect(2) "202.164.34.20" port 9292
here private_pub.yml file content local server:
development: server: "http://localhost:9292/faye/faye" secret_token: "secret" test: server: "http://localhost:9292/faye/faye" secret_token: "secret" production: server: "http://example.com/faye/faye" secret_token: "0378a6008f37cbd9c3390ce4069bb85f776d068f7b4885d6890f07066affde25" signature_expiration: 3600 # 1 hour and other server, here file content:
development: server: "http://202.164.34.20:9292/faye/faye" secret_token: "secret" test: server: "http://202.164.34.20:9292/faye/faye" secret_token: "secret" production: server: "http://localhost:9292/faye/faye" secret_token: "0378a6008f37cbd9c3390ce4069bb85f776d068f7b4885d6890f07066affde25" signature_expiration: 3600 # 1 hour now need deploy on http://202.164.34.20:3001 url. please suggest.
localhost:9292 means bind 127.0.0.0, if want access public ip make sure bind external ip or 0.0.0.0. although suggest proxy nginx/apache users can connect port 80
example nginx
server { listen 80; server_name faye.yourdomain.com; access_log /var/log/nginx/faye.log; location /faye { proxy_pass http://127.0.0.1:9292; proxy_http_version 1.1; proxy_set_header host $host; proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for; proxy_set_header x-real-ip $remote_addr; proxy_set_header upgrade $http_upgrade; proxy_set_header connection $connection_upgrade; proxy_buffering off; proxy_redirect off; proxy_connect_timeout 90; proxy_send_timeout 90; proxy_read_timeout 90; } } map $http_upgrade $connection_upgrade { default upgrade; '' close; }
Comments
Post a Comment