How we work with Heroku
In this chapter we will be outlining our Heroku best practices.
Setting up your Heroku
- Make the app in the right region, like:
heroku create my-app --remote=staging --region=eu
- Use the right remote names.
staging
for staging,production
for production. - Use the
parity
gem for easy Heroku access. Instead of runningheroku --app my-app rake run [command]
you can now doproduction rake
Javascript / React
We typically use a Javascript build pack to compile JS assets for mixed frontend solutions.
Heroku addons
- PG backups for backups
- Heroku scheduler for periodic tasks
- Mailchimp for mailing
- Appsignal for rails error catching
- Sentry for error catching