ENV["DATABASE_URL"] will be the URL that the database written to
database.yml lives on.

On Mon, Nov 29, 2010 at 3:05 AM, Neil <[email protected]> wrote:

> We've many apps on Heroku (read about 30) of which roughly ten are
> production apps.
>
> Therefore I've been looking at creating a little management app to
> backup all the production apps on an hourly cron (and thus only pay
> for cron once).  Question is, using the above rake tasks, what URL
> should be used for a specific db?  Currently I'm using
> ENV["SHARED_DATABASE_URL"] but I keep getting back that it's a bad
> URI.
>
> Does anyone have any pointers on this?  Hopefully if I get it working
> I can open it up to folks
>
> N
>
> On Nov 19, 12:22 am, "Andrew C." <[email protected]> wrote:
> > I've got a lot on my plate right now, but I'm not opposed to getting
> > it into a usable state for other people once I get some spare time.
> >
> > On Nov 17, 2:10 am, Trevor Turk <[email protected]> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > On Nov 16, 6:44 pm, "Andrew C." <[email protected]> wrote:
> >
> > > > I spin up an EC2 instance from my cron job.  The EC2 instance
> captures
> > > > and downloads the backup to S3, then shuts itself down.  Works well
> so
> > > > far.  Obviously, it's not free, but it's freaking cheap.
> >
> > > Any chance of open-sourcing some of that code? It's an interesting
> > > idea. I'm still hoping there's an easier way, but this is certainly an
> > > idea!
> >
> > > - Trevor
>
> --
> 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]<heroku%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>
>

-- 
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