ruby on rails - How to change DATABASE_URL for a heroku application -
i've external database ready , want use database heroku app. i'm unable edit configuration variables. tried using gui, says, cannot overwrite attachment values database_url. while tried using cli well. used command: heroku config:adddatabase_url="postgresql://username:password@ip:port". however, throws error ........ not heroku command.
after trying out these answers, came across update in 2016, here: database needs detached first, update variable of database_url.
heroku addons:attach heroku-postgresql -a <app_name> --as heroku_database heroku addons:detach database -a <app_name> heroku config:add database_url=
Comments
Post a Comment