I am very new to heroku/ruby on rails and git. I just went through Michael Hartl's Ruby on Rails tutorial and want to push my local database to heroku but am having trouble.
After doing some research I found this article:
It seems like it should work, but I do not understand how to set my env var DATABASE_URL
:
$ env DATABASE_URL=postgres://localhost/someapp-dev heroku pg:transfer
Specifically I have no idea what I am supposed to directly copy and what to change. I believe I need to enter my own local host and my own database name.
Is this correct? If so how do I find my localhost and how do I find my database name?
My database.yml file looks like this:
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000