748cd54 Dec 5, 2016
@stevecrozz @tricknotes @stephancom @3zcurdia @wesgarrison
81 lines (59 sloc) 2.24 KB

Deploy to Heroku

The Easy Way

If you just want to get started with Errbit and you're not sure how to proceed, you can use this deploy button to get a basic deployment running on Heroku.


After deploying the application, you still need to run heroku run rake errbit:bootstrap to create indexes and get your admin user set up.

The Hard Way

We designed Errbit to work well with Heroku. These instructions should result in a working deploy, but you should modify them to suit your needs:

Clone and prepare the source code repository

git clone
cd errbit
  • Update db/seeds.rb with admin credentials for your initial login

Commit the results:

git commit -m "Update db/seeds.rb with initial login"

Install the heroku toolbelt

Create an app on Heroku and push the source code

heroku apps:create
heroku addons:create mongolab:sandbox
heroku addons:create sendgrid:starter
heroku config:set GEMFILE_RUBY_VERSION=2.3.3
heroku config:set SECRET_KEY_BASE="$(bundle exec rake secret)"
heroku config:set
heroku config:set
heroku config:set EMAIL_DELIVERY_METHOD=smtp
git push heroku master

Prepare the DB

heroku run rake errbit:bootstrap

Schedule recurring tasks

You may want to periodically clear resolved errors to free up space. For that you have a few options:

Option 1. With the heroku-scheduler add-on (replacement for cron):

# Install the heroku scheduler add-on
heroku addons:create scheduler:standard

# Go open the dashboard to schedule the job.  You should use
# 'rake errbit:clear_resolved' as the task command, and schedule it
# at whatever frequency you like (once/day should work great).
heroku addons:create scheduler

Option 2. With the cron add-on:

# Install the heroku cron addon, to clear resolved errors daily:
heroku addons:create cron:daily

Option 3. Clear resolved errors manually:

heroku run rake errbit:clear_resolved