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 withMAILGUN_*
variables from your account
Docker
Docker deployment instructions available at special repository snibox/snibox-docker.
Heroku
Click the button below to deploy project:
macOS
Setup macOS environment.
Follow steps
2-7
from Ubuntu deployment guide.
Ubuntu
Setup Ubuntu environment.
Copy
.env
file:
cp .env.production.sample .env
- Generate secret key:
rake secret
- Configure
.env
file:
- insert generated secret
- adjust database credentials if needed
- Setup database:
RAILS_ENV=production ./bin/rake db:setup
- Precompile assets:
RAILS_ENV=production ./bin/rake assets:precompile
- 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
- Setup Windows environment.
- Follow steps
2-7
from Ubuntu deployment guide.