How to change DATABASE_URL for a heroku application

后端 未结 7 1764
醉话见心
醉话见心 2020-12-09 15:32

I wanted to use an external Database with my heroku application. But I\'m unable to edit the configuration cariables. I tried using GUI, Which says, Cannot overwrite attachm

相关标签:
7条回答
  • 2020-12-09 16:05

    As explained in this article, the correct syntax to set/add a configuration variable is

    $ heroku config:set DATABASE_URL="postgresql://username:password@IP:PORT"
    

    However, it looks like (see the comments) the DATABASE_URL has been deprecated and trying to update it will trigger an error.

    0 讨论(0)
提交回复
热议问题