Nginx, Passenger, and Rails: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
* <code>apt-get install libmysqlclient-dev</code> | |||
* 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] NOTES: | * work through [https://www.phusionpassenger.com/documentation/Users%20guide%20Nginx.html#install_on_debian_ubuntu Passenger+Nginx installation] NOTES: | ||
** skip the | ** skip the <code>chmod 600 /etc/apt/sources.list.d/passenger.list</code> | ||
** install <code>nginx-full</code> instead of <code>nginx-extras</code>! | ** install <code>nginx-full</code> instead of <code>nginx-extras</code>! | ||
* cd into rails app directory as deployment user | * cd into rails app directory as deployment user | ||
* <code>passenger-config build-native-support</code> | * <code>passenger-config build-native-support</code> | ||
* <code>gem install bundler</code> | * <code>gem install bundler</code> | ||
* <code>bundle install</code> | * <code>bundle install</code> | ||
Line 13: | Line 13: | ||
* 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 | ||
== Email from rails == | |||
add smtp settings to <code>config/environments/production.rb</code> |
Latest revision as of 17:10, 16 May 2017
apt-get install libmysqlclient-dev
- work through rbenv setup
- work through Passenger+Nginx installation NOTES:
- skip the
chmod 600 /etc/apt/sources.list.d/passenger.list
- install
nginx-full
instead ofnginx-extras
!
- skip the
- cd into rails app directory as deployment user
passenger-config build-native-support
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
Email from rails
add smtp settings to config/environments/production.rb