Nginx, Passenger, and Rails: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
* replace /etc/nginx/sites-enabled/default with your app config | * replace /etc/nginx/sites-enabled/default with your app config | ||
* install config/database.yml | * install config/database.yml | ||
* run through rails production setup procedures (in nginx notes) | * run through rails production setup procedures (in [[nginx#Transition_to_Production | nginx notes]]) | ||
* reboot nginx | * reboot nginx |
Revision as of 23:09, 24 November 2014
- work through rbenv setup
- work through Passenger+Nginx installation NOTE: install
nginx-full
instead ofnginx-extras
! - cd into rails app directory
- passenger-config build-native-support
- apt-get install libmysqlclient-dev
- gem install bundler
- bundle install
- update /etc/nginx/nginx.conf (deploy user owns it; 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