Re: ENV['DATABASE_URL'] is nil in Sinatra app using DataMapper

2012-01-13 Thread Mark Pundsack
>From http://devcenter.heroku.com/articles/cedar, try: $ heroku addons:add shared-database:5mb New apps that have the `pg` gem specified in the Gemfile will get this automatically. If the app was created a while ago, or if you added the `pg` gem after the first push, it wouldn't have added the

ENV['DATABASE_URL'] is nil in Sinatra app using DataMapper

2012-01-13 Thread Beony
I'm trying to get my sinatra app running on the cedar stack but ENV['DATABASE_URL'] isn't being set by the system so my DataMapper initialisation is falling back to my local dev db using sqlite `DataMapper.setup(:default, ENV['DATABASE_URL'] || 'sqlite:///path/to/ mydb.db')` Which means the app i