I need to set up a dedicated server for a Rails app. I am not sure what is the best approach for this. I need a solution that can scale with lots of users signing up on a site. I guess it would be a medium-scale application.
Here are more specific questions:
- The OS would probably be ubuntu 10. should I go for ubuntu 10.04 or 10.10?
- Should I install ruby, and consequently all of gems for the app using sudo, or should i use rvm? If there are no costs for an rvm install, I think that would be preferred as that has greater flexibility, but is using rvm a good solution for a production server? I really have no idea about this
- Should I use nginx/unicorn, or nginx/passenger, or apache/passenger, or something else?
- I would need a scalable database, so probably postgres would be better than mysql. Or should I go along with something else, or change my preference here?
One related question, though not related to this post directly: I typically always install one ruby system-wide using sudo, and install packages like libssl or whatever, and then install the others using rvm without sudo. Is this the correct way, or can i directly install all rubies i need with rvm without one installed system-wide as well?