Rails/Nginx/Capistrano/Puma: (111: Connection refused) while connecting to upstream Rails/Nginx/Capistrano/Puma: (111: Connection refused) while connecting to upstream nginx nginx

Rails/Nginx/Capistrano/Puma: (111: Connection refused) while connecting to upstream


So the solution was to restart puma.

cap production deploy:restart

Every time I reboot the server, I need to restart puma as well.


My recommendation is to check

~/apps/appname/shared/log/puma.stderr.log

log file. You may find there the answer


looking at log/puma_error.log i saw the error (LoadError while trying to load bundler), doing gem update --system fixed it.