Heroku指定运行命令的应用程序?

bab*_*bab 5 heroku heroku-toolbelt

在我的git repo中,我添加了两个不同的heroku遥控器来分离应用程序(名为testheroku和officialheroku).

我可以通过指定它们的远程名称(即git push officialheroku master)来单独推送它们,但是当尝试使用heroku run python manage.py syncdb它时,只运行syncdb for testheroku.

如何让heroku在officialheroku上运行syncdb?

zea*_*soi 20

来自Heroku文档:

heroku run python manage.py syncdb --app officialheroku
Run Code Online (Sandbox Code Playgroud)

作为FYI,CLI的一般用法语法如下:

heroku COMMAND [--app APP] [command-specific-options]
Run Code Online (Sandbox Code Playgroud)