在我的git倉庫中,我添加了兩個不同的heroku遙控器來分開應用程序(名爲testheroku和officialheroku)。Heroku指定要運行哪個應用程序的命令?
我可以通過指定它們的遠程名稱(即git push officialheroku master
)將它們分別推送給它們,但是當嘗試使用heroku run python manage.py syncdb
時,它僅爲testheroku運行syncdb。
如何讓heroku在officialheroku上運行syncdb?
▸--app不是一個heroku命令。 –
@AswinKumar您仍然需要Heroku命令,例如'heroku --app heroku_app_name運行python manage.py syncdb' – georgebrock