Nginx, Passenger, and Rails
- work through rbenv setup
- work through Passenger+Nginx installation NOTES:
- skip the part about 'securing'
/etc/apt/sources.list.d/passenger.list
- install
nginx-full
instead ofnginx-extras
!
- skip the part about 'securing'
- 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