Guest User

Untitled

a guest
Aug 5th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. u=URI.parse(ENV['MONGOHQ_URL'])
  2.  
  3. DataMapper.setup(:external,
  4. :adapter => 'mongo',
  5. :user => u.user,
  6. :password => u.password,
  7. :host => u.host,
  8. :port => u.port,
  9. :database => u.path.gsub(/^\//, '')
  10. )
  11.  
  12. but now i got an error talking with the database:
  13.  
  14. unauthorized db:app1234567 lock type:-1 client:12.345.67.891
Add Comment
Please, Sign In to add comment