Skip to content

Commit

Permalink
use MONGODB_URI instead of MONGOLAB_URI
Browse files Browse the repository at this point in the history
  • Loading branch information
tdtds committed Apr 12, 2016
1 parent 12da32f commit 7457b9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/export
@@ -1,5 +1,5 @@
#!/usr/bin/zsh
source =(heroku config --app gracoro-union | grep MONGOLAB_URI | ruby -ne '
source =(heroku config --app gracoro-union | grep -e MONGODB_URI -e MONGOLAB_URI | ruby -ne '
x,x,user,pass,host,port,db, = $_.split %r|[:@/]+|
puts "user=#{user}"
puts "pass=#{pass}"
Expand Down
2 changes: 1 addition & 1 deletion lib/connect.rb
Expand Up @@ -7,6 +7,6 @@
raise StandardError::new( 'no TWITTER_OAUTH_TOKEN' ) unless ENV['TWITTER_OAUTH_TOKEN']
raise StandardError::new( 'no TWITTER_OAUTH_TOKEN_SECRET' ) unless ENV['TWITTER_OAUTH_TOKEN_SECRET']

uri = ENV['MONGOLAB_URI'] || 'mongodb://localhost:27017/gracoro_union'
uri = ENV['MONGODB_URI'] || ENV['MONGOLAB_URI'] || 'mongodb://localhost:27017/gracoro_union'
Mongo::Logger.level = Logger::WARN
Mongoid::Config.load_configuration({clients: {default: {uri: uri}}})

0 comments on commit 7457b9e

Please sign in to comment.