Nginx, Passenger, and Rails: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
* work through [[rbenv| rbenv setup]] | * work through [[rbenv| rbenv setup]] | ||
* work through [https://www.phusionpassenger.com/documentation/Users%20guide%20Nginx.html#install_on_debian_ubuntu Passenger+Nginx installation] NOTE: install <code>nginx-full</code> instead of <code>nginx-extras</code>! | * work through [https://www.phusionpassenger.com/documentation/Users%20guide%20Nginx.html#install_on_debian_ubuntu Passenger+Nginx installation] NOTE: install <code>nginx-full</code> instead of <code>nginx-extras</code>! | ||
* cd into rails app directory | * cd into rails app directory as deployment user | ||
* passenger-config build-native-support | * <code>passenger-config build-native-support</code> | ||
* apt-get install libmysqlclient-dev | * <code>apt-get install libmysqlclient-dev</code> | ||
* gem install bundler | * <code>gem install bundler</code> | ||
* bundle install | * <code>bundle install</code> | ||
* update /etc/nginx/nginx.conf ( | * update <code>/etc/nginx/nginx.conf</code> (activate passenger) | ||
* replace /etc/nginx/sites-enabled/default with your app config | * replace <code>/etc/nginx/sites-enabled/default</code> with your app config | ||
* install config/database.yml | * install <code>config/database.yml</code> | ||
* run through rails production setup procedures (in [[nginx#Transition_to_Production | nginx notes]]) | * run through rails production setup procedures (in [[nginx#Transition_to_Production | nginx notes]]) | ||
* reboot nginx | * reboot nginx |
Revision as of 23:11, 24 November 2014
- work through rbenv setup
- work through Passenger+Nginx installation NOTE: install
nginx-full
instead ofnginx-extras
! - cd into rails app directory as deployment user
passenger-config build-native-support
apt-get install libmysqlclient-dev
gem install bundler
bundle install
- update
/etc/nginx/nginx.conf
(activate passenger) - replace
/etc/nginx/sites-enabled/default
with your app config - install
config/database.yml
- run through rails production setup procedures (in nginx notes)
- reboot nginx