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:

pg transfer new taps

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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -