Permalink
Browse files

Adds Heroku instructions

  • Loading branch information...
1 parent 08c4d73 commit 6455d61e7f8784fffc4baf5881c8e73417a70618 @matiaskorhonen matiaskorhonen committed Oct 17, 2012
Showing with 26 additions and 0 deletions.
  1. +26 −0 HEROKU.md
View
26 HEROKU.md
@@ -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`

0 comments on commit 6455d61

Please sign in to comment.