我们正在迁移一些东西,需要临时使用两个不同的环境变量附加相同的数据库。现在我们已经迁移了,我想删除附件,但遗憾的是,Heroku 命令行客户端说我有一个不明确的标识符:
\n\n$ heroku addons --app $APP_SOURCE\n\nAdd-on                                                          Plan         Price     State\n\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80  \xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80  \xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80  \xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\nheroku-postgresql (...)                    hobby-basic  $9/month  created\n \xe2\x94\x9c\xe2\x94\x80 as DATABASE\n \xe2\x94\x9c\xe2\x94\x80 as HEROKU_POSTGRESQL_ORANGE\n \xe2\x94\x9c\xe2\x94\x80 as DATABASE on stb-crds-rails-sf app\n \xe2\x94\x9c\xe2\x94\x80 as SHARETHEBUS_RAILS_DATABASE on stb-crds-rails-sf app\n \xe2\x94\x94\xe2\x94\x80 as SHARETHEBUS_RAILS_DATABASE_URL on stb-crds-rails-sf app\n\n\n$ heroku addons:detach --app stb-crds-rails-sf $ADDON_NAME\n \xe2\x96\xb8    Ambiguous identifier; multiple matching attachments found: DATABASE, SHARETHEBUS_RAILS_DATABASE, SHARETHEBUS_RAILS_DATABASE_URL.\n我也尝试过heroku addons:detach --app stb-crds-rails-sf $ADDON_NAME --as SHARETHEBUS_RAILS_DATABASE_URL并且heroku addons:detach --app stb-crds-rails-sf $ADDON_NAME SHARETHEBUS_RAILS_DATABASE_URL,但命令行说最后一个参数是意外的。
我们有什么选择来删除额外的插件?
\n事实证明,您可以使用变量名称而不是插件名称:
$ heroku addons:detach SHARETHEBUS_RAILS_DATABASE_URL
| 归档时间: | 
 | 
| 查看次数: | 806 次 | 
| 最近记录: |