in my experience, db:push does exactly that: it takes your local development database and converts it into the heroku production database. I've seen that error before; once it was an intermittent issue with heroku. Another time a new heroku ruby gem came out and I forgot to update it.
On Thu, Jul 9, 2009 at 3:46 PM, Sarah Allen<[email protected]> wrote: > > I'm trying to push my database to heroku, but I get an error... the > command is so simple I am at a loss for how to debug. > > $ heroku db:push > Invalid database url > > I wasn't sure which database is was going to push. I assume it takes > the one based on my RAILS_ENV (which would be development), but then I > would assume the heroku app is running in production, so would it use > that data? or does it "do what I mean" and push the database from my > current env into the heroku environment (as production) > > My local rails app can access the database fine. Here's my > database.yml.... > > defaults: &defaults > adapter: mysql > username: root > password: > encoding: utf8 > socket: /tmp/mysql.sock > > development: > <<: *defaults > database: mightyverse_dev > > # Warning: The database defined as 'test' will be erased and > # re-generated from your development database when you run 'rake'. > # Do not set this db to the same as development or production. > test: > <<: *defaults > database: mightyverse_test > > production: > <<: *defaults > database: mightyverse_production > > cucumber: > <<: *defaults > database: mightyverse_cucumber > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
