- A Ruby installation (>= 1.9.2)
- Heroku CLI tools (https://toolbelt.heroku.com/)
-
Clone the repository (if you haven't already)
-
bundle install --without production
-
heroku create
-
heroku addons:add sendgrid:starter
-
heroku addons:add pgbackups:auto-month
(optional) -
Configure the
SECRET_TOKEN
andHOST
:heroku config:add SECRET_TOKEN=`rake secret` HOST=name.herokuapp.com
-
git push heroku master
-
heroku run rake db:migrate
-
Go to
http://<name>.herokuapp.com
to create an account -
Create an admin:
heroku run console
- In the console:
Admin.create(email: "[email protected]", password: "secret")
- To leave the Rails console:
exit
- In the console:
- Log in as an admin on
http://<name>.herokuapp.com/magic