From 0fb77d9ce20d191f5b543f3a93a807f7d1decb39 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Wed, 15 Feb 2012 16:35:54 +0800 Subject: [PATCH] Added mongoid config for MongoHQ on heroku --- README.md | 3 +++ config/mongoid.mongohq.yml | 8 ++++++++ 2 files changed, 11 insertions(+), 0 deletions(-) create mode 100644 config/mongoid.mongohq.yml diff --git a/README.md b/README.md index 69b28d7..458b2a8 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,9 @@ git clone http://github.com/errbit/errbit.git gem install heroku heroku create example-errbit --stack cedar heroku addons:add mongohq:free +cp config/mongoid.mongohq.yml config/mongoid.yml +git add -f config/mongoid.yml +git commit -m "Added mongoid config for MongoHQ" heroku addons:add sendgrid:starter heroku config:add HEROKU=true heroku config:add ERRBIT_HOST=some-hostname.example.com diff --git a/config/mongoid.mongohq.yml b/config/mongoid.mongohq.yml new file mode 100644 index 0000000..381ff40 --- /dev/null +++ b/config/mongoid.mongohq.yml @@ -0,0 +1,8 @@ +# Mongoid Configuration for MongoHQ on Heroku +# =========================================== +# +# Copy this file to config/mongoid.yml, +# commit it to your repo, then push to heroku. + +production: + uri: <%= ENV['MONGOHQ_URL'] %> \ No newline at end of file -- libgit2 0.21.2