nginx - Rails app not appear at a server's IP (just a blank page) -


i have stucked production server. trying resolve 2 days not understand why happens this. problem is: have tried deploy rails application nginx/unicorn/capistrano. finally, got process working. nginx , unicorn seem ok on production server, when enter server's ip, there blank screen. before had there @ least message nginx runned. suppose problem may nginx , unicorn searching app in wrong place, checked routes , seem correct. application has root welcome page, should displayed there...

could me thougts might problem?

p.s. if create test rails app @ server , run using webricks, showed @ my_server_ip:3000, problem definetly unicorn/nginx.

my nginx.conf file:

upstream unicorn {     server unix:/tmp/unicorn.foreignernetwork.sock fail_timeout=0; }  server {     listen 80 default deferred;     server_name justforeign.com;     root /var/www/foreignernetwork/current/public;  location ^~ /assets/ {     gzip_static on;     expires max;     add_header cache-control public; }  try_files $uri/index.html $uri @unicorn; location @unicorn {     proxy_set_header x-forwarded-for $proxy_add_x_forwarded_for;     proxy_set_header host $http_host;     proxy_redirect off;     proxy_pass http://unicorn; }  error_page 500 502 503 504 /500.html; client_max_body_size 4g; keepalive_timeout 10;  } 

my unicorn.rb file:

root = "/var/www/foreignernetwork/current" working_directory root pid "#{root}/tmp/pids/unicorn.pid" stderr_path "#{root}/log/unicorn.log" stdout_path "#{root}/log/unicorn.log"  listen "/tmp/unicorn.foreignernetwork.sock" worker_processes 2 timeout 30  # force bundler gemfile environment variable # reference capistrano "current" symlink before_exec |_|   env["bundle_gemfile"] = file.join(root, 'gemfile') end 


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -