Skip to content

Commit 2b77984

Browse files
committed
Make the MongoDB database configurable
1 parent 0fb8fba commit 2b77984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/mongoid.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
development:
22
sessions:
33
default:
4-
database: badgify_development
4+
database: <%= ENV['MONGO_DATABASE'] || 'badgify_development' %>
55
hosts:
66
- <%= ENV['MONGO_URL'] || 'localhost:27017' %>
77

0 commit comments

Comments
 (0)