Cool.
Ah, and I take back my words: Heroku works fine with Sinatra+AR.

Regards


On Mar 16, 10:58 pm, Raj Bandyopadhyay <[email protected]> wrote:
> Hmmm, I do have a config/database.yml. Weird.
>
> Anyway, as per Marco's tip, I switched my app to DataMapper and got it
> to work fine. It's a small app, so it didn't take long. There a couple
>aA, and I take back my word of strange quirks with Heroku + Sinatra + 
>DataMapper too, but managed
> to figure them out.
>
> Thanks for the help, guys!
> Raj
>
> PS: Marco, Thank you for your generous offer. If I ever get back to
> trying AR + Sinatra + Heroku, I'll ask you for help :D
>
> On Mar 16, 12:23 pm, marco <[email protected]> wrote:
>
>
>
>
>
>
>
> > 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_activerecordforthe
> > > support information they have on this.
>
> > > I recently deployed a minimalSinatra+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 notSinatra+ AR (which works fine for me on a
> > > > local linux box), butSinatra+ 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 usedSinatra+ 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.

Reply via email to