Deployment

Guides for various platforms

Emails

Snibox uses Mailgun to send emails on production. You need them just for 'reset password' feature. On Heroku you can install mailgun:starter addon. Otherwise follow steps below to setup them:

  • Create account on Mailgun
  • Fill .env file with MAILGUN_* variables from your account

Docker

Docker deployment instructions available at special repository snibox/snibox-docker.

Heroku

Click the button below to deploy project:

Deploy

macOS

  1. Setup macOS environment.

  2. Follow steps 2-7 from Ubuntu deployment guide.

Ubuntu

  1. Setup Ubuntu environment.

  2. Copy .env file:

cp .env.production.sample .env
  1. Generate secret key:
rake secret
  1. Configure .env file:
  • insert generated secret
  • adjust database credentials if needed
  1. Setup database:
RAILS_ENV=production ./bin/rake db:setup
  1. Precompile assets:
RAILS_ENV=production ./bin/rake assets:precompile
  1. Launch server:
RAILS_ENV=production ./bin/rails s

Visit your server at port 3000 to view the project!

If you want to deploy with Nginx + Passenger then you can check this guide from Gorails

Windows

  1. Setup Windows environment.
  2. Follow steps 2-7 from Ubuntu deployment guide.