1

I have a VPS with centOS that we currently use for serving php apps with apache. Now I also want to serve rails app from there. Either I can use phusion-passenger or I can do a separate unicorn and nginx setup for my rails app. Which way would be better? I have more than 10 php apps and 1 rails app. I also don't want php apps and rails app and servers to be messed up. And I don't want to invest on a new VPS for single rails app. Regards

2
  • Have you tried either of these and did you run into any issues? What defines "better" for you?
    – slhck
    Oct 28, 2012 at 11:33
  • I have not tried any of these before that's why I am asking. Better means what's a good approach if I had to serve both PHP and Rails from one VPS.
    – roxxypoxxy
    Oct 31, 2012 at 4:36

1 Answer 1

0

Personally I am more of a fan of the nginx/Unicorn combination (I tried to compare different hosting approaches here).

My server currently runs some small Rails applications (using this stack) and PHP for Piwik analytics stuff.

I have written an ebook which covers setting up a Rails server completely from scratch (using rbenv, nginx, Unicorn and MySQL) and illustrates how to deploy an application manually - the goal is to help readers understand the inner workings of the deployment process.

It should not be too hard to use the steps from the book with Apache instead of nginx if you do not want to run two webservers in parallel.

It's free for people on my mailing list. If you are interested, you can grab your copy here.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .