Can someone point me to a very good recent guide on how to setup CentOS + Rails + nginx + Unicorn + MySQL + RVM(?) ?
Or could provide some instructions here?
I’m also not sure if to use RVM on production server, Will that be a good idea?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
RVM, Ruby and Rails is fairly straightforward to setup in CentOS.
Install requirements:
Install RVM:
Reload your profile:
Run rvm requirements and install any of the listed dependencies:
Update rvm (just in case):
Install the latest version of Ruby:
Setup your RVM environment:
Update gems to the latest version:
Install Rails:
Install unicorn:
You should check out the defunkt github repo. There are a lot of great configuration files in there for Unicorn and Nginx that work well.
Once you create your rails project, read the comments in the unicorn.rb and nginx files in the defunkt project to configure them correctly.