We are using rails 4 and we are facing problem of 502 gateway error. Many time rails server automatically shut down and database connection (postgresql) disconnected.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This question was answered by @ryanpq:
There are a ton of reasons why a Rails script could crash. You will need to review your logs or implement some error handling in your script to log these events. There are several ruby gems out there that will help you easily add logging and crash reporting to a ruby script. Without further information (a 502 error is just nginx saying that the Ruby process is no longer listening at the port where it is looking for it) it won’t be possible to narrow down a specific cause.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.