How to change DATABASE_URL for a heroku application

后端 未结 7 1768
醉话见心
醉话见心 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.

提交回复
热议问题