ruby on rails - Heroku pg:push Can't get Database URL working -


i'm trying use heroku pg:push send data local machine production instance on heroku.

i've looked @ several posts , i've tried:

on this page i've tried:

heroku pg:push mylocaldb heroku_postgresql_magenta --app [app name] 

but db url isn't aliased heroku_postgresql_magenta. i've tried putting in full database url see when run

heroku config --app [app name] 

but, error needs url.

so did more digging on this page.

i tried running

heroku pg:wait 

and

heroku config -s | grep heroku_postgresql 

in attempt "color url" nothing gets returned when run command.

any ideas?

thanks

yes substituting actual variables local database , app name.

using database_url database url worked. thanks!


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -