I guess you waited another 63 seconds and the 502 went away? It takes rails a bit more time to start up than it does nginx.