部署django[django,git,heroku]的问题

部署django[django,git,heroku]的问题,django,heroku,Django,Heroku,我创建了一个heroku应用程序: $ 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. Wri

我创建了一个heroku应用程序:

$ 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.
然后,我尝试向应用程序添加插件:

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应用程序中,或者您必须为每个插件指定应用程序?

是-查看heroku的开发中心。告诉你怎么做:
git推送heroku yourbranch:master

至于附加组件,只需指定应用程序即可。大概是


heroku插件:add cloudamqp:panda-一个myappname

非常感谢您提供的信息-这正是我想要的。