Commit 0fb77d9ce20d191f5b543f3a93a807f7d1decb39

Authored by Nathan Broadbent
1 parent 780e15a7
Exists in master and in 1 other branch production

Added mongoid config for MongoHQ on heroku

Showing 2 changed files with 11 additions and 0 deletions   Show diff stats
@@ -107,6 +107,9 @@ git clone http://github.com/errbit/errbit.git @@ -107,6 +107,9 @@ git clone http://github.com/errbit/errbit.git
107 gem install heroku 107 gem install heroku
108 heroku create example-errbit --stack cedar 108 heroku create example-errbit --stack cedar
109 heroku addons:add mongohq:free 109 heroku addons:add mongohq:free
  110 +cp config/mongoid.mongohq.yml config/mongoid.yml
  111 +git add -f config/mongoid.yml
  112 +git commit -m "Added mongoid config for MongoHQ"
110 heroku addons:add sendgrid:starter 113 heroku addons:add sendgrid:starter
111 heroku config:add HEROKU=true 114 heroku config:add HEROKU=true
112 heroku config:add ERRBIT_HOST=some-hostname.example.com 115 heroku config:add ERRBIT_HOST=some-hostname.example.com
config/mongoid.mongohq.yml 0 → 100644
@@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
  1 +# Mongoid Configuration for MongoHQ on Heroku
  2 +# ===========================================
  3 +#
  4 +# Copy this file to config/mongoid.yml,
  5 +# commit it to your repo, then push to heroku.
  6 +
  7 +production:
  8 + uri: <%= ENV['MONGOHQ_URL'] %>
0 \ No newline at end of file 9 \ No newline at end of file