ruby on rails - connect() to unix:/app_path/shared/sockets/unicorn.[app].sock failed. No such file or directory -
i deployed rails app using capistrano gem on ubuntu 14.04. using nginx, unicorn.
i've followed steps in deployment http://requiremind.com/deploying-a-rails-app-on-your-own-server-the-ultimate-guide/ seems not working. message
"we're sorry, went wrong."
verified nginx up
sudo netstat -plutn | grep :80
output
tcp 0 0 0.0.0.0:80 0.0.0.0:* listen 27525/nginx
and here /var/log/nginx/error.log
*7 connect() unix:/home/user/apps/my_app/shared/sockets/unicorn.2doto.sock failed (2: no such file or directory) while connecting upstream, client: client_ip_address, server: , request: "get / http/1.1", upstream: "http://unix:/home/user/apps/my_app/shared/sockets/unicorn.2doto.sock:/", host: "server_ip_address"
but file unicorn.2doto.sock exists in location. , not sure why isn't working!
unicorn.rb file
app_dir = "/home/user/apps/my_app" shared_dir = "#{app_dir}/shared" root = "#{app_dir}/current" working_directory root pid "#{root}/tmp/pids/unicorn.pid" stderr_path "#{root}/log/unicorn.log" stdout_path "#{root}/log/unicorn.log" listen "#{shared_dir}/sockets/unicorn.2dot0.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
could please help?
Comments
Post a Comment