How can I attach a database to an app in Heroku?

前端 未结 3 1299
伪装坚强ぢ
伪装坚强ぢ 2021-02-05 11:01

I\'m using Heroku\'s Postgres addon, and I created a new production database from the Heroku Postgres addon page. I Didn\'t add it directly to my App using the Resources page of

3条回答
  •  别跟我提以往
    2021-02-05 11:28

    Heroku add-ons may now be attached across applications and multiple times on a single app.

    heroku addons:attach ADDON_NAME -a APP_NAME
    

    Source: https://devcenter.heroku.com/changelog-items/646


    To know the name of your addon, do:

    heroku addons
    

    Source: https://devcenter.heroku.com/articles/managing-add-ons

提交回复
热议问题