This repository has been archived by the owner on Aug 13, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08c4d73
commit 6455d61
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# How to Deploy to Heroku | ||
|
||
## Prerequisites | ||
|
||
* A Ruby installation (>= 1.9.2) | ||
* Heroku CLI tools (<https://toolbelt.heroku.com/>) | ||
|
||
## 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: "your@email.com", password: "secret")` | ||
* To leave the Rails console: `exit` | ||
* Log in as an admin on `http://<name>.herokuapp.com/magic` |