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.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.