Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Latest commit

 

History

History
26 lines (20 loc) · 839 Bytes

HEROKU.md

File metadata and controls

26 lines (20 loc) · 839 Bytes

How to Deploy to Heroku

Prerequisites

Create the Heroku app

  1. Clone the repository (if you haven't already)

  2. bundle install --without production

  3. heroku create

  4. heroku addons:add sendgrid:starter

  5. heroku addons:add pgbackups:auto-month (optional)

  6. Configure the SECRET_TOKEN and HOST:

    heroku config:add SECRET_TOKEN=`rake secret` HOST=name.herokuapp.com

  7. git push heroku master

  8. heroku run rake db:migrate

  9. Go to http://<name>.herokuapp.com to create an account

  10. Create an admin:

  • heroku run console
    • In the console: Admin.create(email: "[email protected]", password: "secret")
    • To leave the Rails console: exit
  • Log in as an admin on http://<name>.herokuapp.com/magic