我创建了一个heroku app:
$ heroku create olp-website
Creating olp-website... done, stack is cedar
然后我尝试将我的git分支推送到应用程序:
git push heroku deploy
Counting objects: 25, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (20/20), done.
Writing objects: 100% (25/25), 8.48 KiB, done.
Total 25 (delta 1), reused 0 (delta 0)
Pushed to non-master branch, skipping build.
To git@heroku.com:olp-website.git
* [new branch] deploy -> deploy
然后,我尝试在应用中添加插件:
$ heroku addons:add cloudamqp:panda
! No app specified.
! Run this command from an app folder or specify which app to use with --app APP.
所以这既是一般问题,也是具体问题。分支是否必须是主分支(请参阅“推送到非主分支,跳过构建”)?是否可以在特定的heroku应用程序内部,或者您是否必须为每个插件指定应用程序?
答案 0 :(得分:1)
是的 - 查看Heroku的开发中心。 The article告诉您如何操作:
git push heroku yourbranch:master
至于插件,只需指定应用即可。像
这样的东西 heroku addons:add cloudamqp:panda -a myappname