I am getting the following errors in nginx.error.log file:
2017/01/19 23:51:57 [crit] 809#809: *1 connect() to unix:///home/deploy/Production01/appname/shared/tmp/sockets/Production01-puma.sock failed (2: No such file or home/deploy/Production01/appname/shared/tmp/sockets/Production01-puma.sock:/axis-cgi/jpg/image.cgi", host: "185.123.188.98", referrer: "1" 2017/01/19 23:51:57 [info] 809#809: *1 client 217.118.84.185 closed keepalive connection
and in the puma.log I have:
=== puma startup: 2017-01-19 23:53:00 +0200 === * Listening on unix:///home/deploy/apps/Production01/shared/tmp/sockets/Production01-puma.sock
I am using capistrano and everything is deployed correctly. On my local machine the demo project is working fine.
This is my first deploy and I guess I have not do something correctly in the config files.
Could you advice?
You need to symlink your nginx files.
Try this on your server
cd ~
sudo ln -nfs home/deploy/Production01/appname/current/config/nginx.conf /etc/nginx/sites-available/appname
sudo ln -nfs /etc/nginx/sites-available/appname /etc/nginx/sites-enabled/
sudo service nginx restart
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.