Nginx, Passenger, and Rails
Jump to navigation
Jump to search
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-fullinstead ofnginx-extras!
- skip the
- cd into rails app directory as deployment user
passenger-config build-native-supportgem install bundlerbundle install- update
/etc/nginx/nginx.conf(activate passenger) - replace
/etc/nginx/sites-enabled/defaultwith 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