ruby on rails - How do I use the command "heroku pg:transfer"? -
i new heroku/ruby on rails , git. went through michael hartl's ruby on rails tutorial , want push local database heroku having trouble.
after doing research found article:
it seems should work, not understand how set env var database_url
:
$ env database_url=postgres://localhost/someapp-dev heroku pg:transfer
specifically have no idea supposed directly copy , change. believe need enter own local host , own database name.
is correct? if how find localhost , how find database name?
my database.yml file looks this:
development: adapter: sqlite3 database: db/development.sqlite3 pool: 5 timeout: 5000
my understanding - must use postgresql database on heroku. when pushed application heroku changed databases postgresq al part of push - including in dev. looking @ link provided impression means database copying postgresql (as opposed sqlite).
Comments
Post a Comment