502 Bad Gateway

Recently, I've changed my server from mod-passenger to nginx because of the comment at merb google groups[link]. Passenger was fit for me. It makes deployment more easier than before. However, merb's way of handling processes seems complicated and advanced as Ezra said[link]. And it is not fully compatible with passenger now.

So I came back to nginx. I thought it would be easy. But it took some time to run my small app. I 've seen a lot of "502 Bad Gateway" page. I guessed that compiling was wrong at first time. It wasn't nginx but my logic in the codes. So the best way to check what's wrong, just type "merb" on the server. I haven't installed necessary gems and libraries. Yes, it is very basic stuff but easy to miss.
blog comments powered by Disqus