Skip to content

Commit 8f6f173

Browse files
committed
adding heroku mongodb stuff
1 parent 1b1d931 commit 8f6f173

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
1-
MongoMapper.database = "hackety-hack-com-#{Rails.env}"
1+
if ENV['MONGOHQ_URL']
2+
MongoMapper.config = {
3+
Rails.env => { 'uri' => ENV['MONGOHQ_URL'] }
4+
}
5+
6+
MongoMapper.connect(Rails.env)
7+
else
8+
MongoMapper.database = "hackety-hack-com-#{Rails.env}"
9+
end

0 commit comments

Comments
 (0)