Ow! Got it working. Thank you all!
Daniel Huckstep and Andrew Le, your tips really helped! Indeed, Heroku is running my tasks and it needs to have a config/ database.yml What happend with me was, my tasks weren't loading my database.yml Raj Bandyopadhyay, I 'd like to take a look at your code, in the case you are still stuck with this. Let's beat this issue once for all! On Mar 16, 10:01 am, Andrew Le <[email protected]> wrote: > Raj, Marco, > > Have you made sure that you're loading your config file correctly > before the rake db:migrate task is run? It looks like the migrate task > has got some AR code trying to run, but does not have any of the > required config options set. > > If you've put your DB config in a file other than config/database.yml, > AR won't work on Heroku since they look specifically for config/ > database.yml to write production DB info to. > Seehttp://devcenter.heroku.com/articles/rack#using_activerecordfor the > support information they have on this. > > I recently deployed a minimal Sinatra+AR app using this information > and it worked great. > > //A > > On Mar 16, 2:23 am, Raj Bandyopadhyay <[email protected]> wrote: > > > > > > > > > Good point, marco. > > > Daniel, the problem is not Sinatra + AR (which works fine for me on a > > local linux box), but Sinatra + AR + Heroku. > > > I think I'm gonna google some more for a solution, and then try > > DataMapper instead. I just want my app to work first :D > > > Thanks for investigating! > > Raj > > > On Mar 15, 10:19 pm, marco <[email protected]> wrote: > > > > Really cool! > > > > I'm definitely gonna try it, but before anything: > > > Do you host it in Heroku? > > > > Thanks! > > > > On Mar 15, 11:10 pm, Daniel Huckstep <[email protected]> > > > wrote: > > > > > I used Sinatra + AR + migrations on my old blog, and it worked fine. > > > > Code:https://github.com/darkhelmet/darkblog > > > > > -- > > > > Daniel Huckstephttp://blog.darkhax.com/ -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
