ruby - CentOS + Rails + nginx + Unicorn + MySQL + RVM(?) howto? -


can point me recent guide on how setup centos + rails + nginx + unicorn + mysql + rvm(?) ?

or provide instructions here?

i'm not sure if use rvm on production server, idea?

rvm, ruby , rails straightforward setup in centos.

install requirements:

sudo yum install git patch pcre pcre-devel openssl openssl-devel curl curl-devel libxslt-devel libxml2-devel sqlite-devel nginx 

install rvm:

bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) 

reload profile:

source ~/.bash_profile 

run rvm requirements , install of listed dependencies:

rvm requirements 

update rvm (just in case):

rvm head && rvm reload 

install latest version of ruby:

rvm install 1.9.3 

setup rvm environment:

rvm use 1.9.3@projectname --create --default 

update gems latest version:

gem update --system 

install rails:

gem install rails 

install unicorn:

gem install unicorn 

you should check out defunkt github repo. there lot of great configuration files in there unicorn , nginx work well.

once create rails project, read comments in unicorn.rb , nginx files in defunkt project configure them correctly.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -