Skip to content

Deployment

Nat Tuck edited this page Jun 19, 2017 · 1 revision
  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.

Clone this wiki locally