Rails deploy via Capistrano+Nginx conflicts with Apache?
I ran the deploy script from my home machine and it deployed files to my Linode at the appropriate web address (yay!). However, it looks like there is conflict with Apache, and my site is not serving up on the server. The files are simply "directory listing" contents.
The site is:
App code is all on Github:
I can post config files, if needed. Hopefully it's something obvious I'm missing because I've spent too much time in the problem, and can't see it. Any help will be greatly GREATLY appreciated.
10 Replies
Either replace apache with nginx or use nginx to proxy requests to apache
I need a concrete example of something that will work and allow me to get this Rails app (which was extraordinarily difficult in and of itself to get to work beautifully on locahost) live on the Internet. This should not be so difficult. Can the config/deploy.rb script be modified to work with Passenger? I have not been able to find anything that shows a working example of this.
That can then buy you some time (without pressure due to the new site being unavailable) to look into figuring out how to integrate your older sites and the new site on a single system. I do suspect it'll be easiest to use nginx on the front end (since it runs your dynamic site which tends to require more server-specific configuration) and proxy the older requests back to Apache. If your older sites are truly static, it may be just as easy to let nginx handle them directly as well.
But in any case, there's no need to solve that issue as a precursor to at least getting your new site online.
– David
I am sure that somebody somewhere has been able to figure out how to host mutiple static sites + one rails app with a Postgres DB on a single-server IP address managed by Apache. Passenger seemed kind of promising, but the Linode documentation on it is terrible and did not work.
reverse proxyProxyPassrewrite ruleP
Here's an example
Nginx was a terrible idea.
=============================================
Dear Nginx:
You are far too Herculean for my tastes. Why can't you just let everybody do their own thing? Why do you try to run the whole show? I wasted so much precious time trying to get you to play nice, but that's just not something you seem to know how to do.
You're just too bossy. You shall be banished from my Linodes forever.
Love,
indie
=============================================
I ended up using Apache + a bleeding-edge "experimental" version of Passenger cloned from Github.
Will post details later. In the meantime, lemme just put this out there: I've learned the hard way to not listen to advice on forums, and just work with what I know.