-
Notifications
You must be signed in to change notification settings - Fork 21
Deployment
Nat Tuck edited this page Jun 19, 2017
·
1 revision
- Set up an Ubuntu 16.04 install with a btrfs filesystem.
- Install Passenger (https://www.phusionpassenger.com/library/install/nginx/install/oss/xenial/).
- Enable the site in nginx. Here's some relevant stuff for the config (probably added/edited to /etc/nginx/sites-enabled/default).
root /home/bottlenose/bottlenose/public;
passenger_enabled on;
passenger_ruby /home/bottlenose/.rvm/wrappers/default/ruby;
- Install some prereqs: sudo apt-get install build-essential git postgresql libpq-dev qt5-default qt5-qmake libqt5webkit5-dev xvfb
- Create the DB user. (sudo su - postgres ; createuser -d bottlenose)
- Create a "bottlenose" user.
- As the bottlenose user:
- Clone the git repo.
- Install rvm https://rvm.io/
- export RAILS_ENV=production (and probably add that to .bashrc)
- In the bottlenose directory:
- Run the ruby install command requested by RVM
- gem install bundle
- bundle install
- rake db:create
- rake db:schema:load
- bundle exec rake assets:precompile
More stuff: Setting up sandboxing.