Reputation: 240
Apologies, but I have nearly zero understanding of Ruby so I may be a touch slow on replies as I look up things in responses.
Anywho, I have a site that I'm helping make updates for built with Ruby Puma on AWS. I spoke to the original DEV about how to publish (nice gentleman over in India so we're on a 12 hour delay) to which he gave me the following instructions:
RAILS_ENV=production rake assets:precompile
ps aux | grep puma
kill -9 1025(puma process number)
bundle exec puma -C config/puma.rb
I went ahead and ran his step-by-step process through my ssh access, however, it resulted in a 502 Bad Gateway nginx/1.4.6 (Ubuntu)
I'm hesitant to go kicking around and trying other solutions since I don't fully understand his setup, but I hate leaving a site in a 502. Anyone have any idea why the step-by-step caused such a response?
Upvotes: 0
Views: 726
Reputation: 240
Turns out the dev didn't specify the correct folder for me to run the Ruby update inside of. Once he highlighted the correct folder everything updated as expected.
Upvotes: 0
Reputation: 87531
In general, this error means that nginx is configured to act as an HTTP proxy and the server you are proxying to (probably the Rails app) is not functioning enough to give any kind of response. You should try accessing your Rails app directly if possible (instead of going through nginx) to see if you can get more information about the error. You should try looking in the Rails error logs.
Upvotes: 1