Any time the rails and nginx server restarts, the application is unresponsive for up to a minute or so. During this time, there's a completely unhelpful generic 502 error from nginx. Let's improve that by adding a customized error page that looks more like the login page or something at least branded with the Terrastories logo.
Bonus points if we can also include client-side polling against an /is_it_up endpoint and automatically redirect to the app once the server is running.
Any time the rails and nginx server restarts, the application is unresponsive for up to a minute or so. During this time, there's a completely unhelpful generic 502 error from nginx. Let's improve that by adding a customized error page that looks more like the login page or something at least branded with the Terrastories logo.
Bonus points if we can also include client-side polling against an
/is_it_up
endpoint and automatically redirect to the app once the server is running.