[英]Problems after run: heroku run python manage.py migrate
[英]How to use 'heroku run python manage.py migrate' after deploying from the Github?
我用Django(1.10.6)編寫了一個應用程序,並通過Github的自動部署將其部署到heroku。 但是,部署后,Heroku上的項目在數據庫中存在一些錯誤:
ProgrammingError at /
relation "sport_facility" does not exist
LINE 1: ...lity"."open_at", "sport_facility"."close_at" FROM "sport_fac...
因此,我通過Heroku Git進行部署,效果很好。 我檢查了先前應用程序的活動,發現從Github部署時沒有migrate
。
我想知道如何從命令行為從Github部署的應用程序運行heroku命令(例如heroku run python manage.py migrate
或heroku ps:scale web=2
等)?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.