【发布时间】:2014-08-06 16:59:03
【问题描述】:
我刚刚成功将Askbot论坛部署到heroku,但有时在运行'git push heroku master'时,自动collectstatic进程失败(在我看来是随机失败),提示:
-----> Python app detected
-----> Installing dependencies with pip
Cleaning up...
-----> Preparing static assets
Collectstatic configuration error. To debug, run:
$ heroku run python ./askbot/setup_templates/manage.py collectstatic --noinput`
好吧,我真的不知道这是否是问题所在,但 .askbot/setup_templates/ 中的 manage.py 包含应用程序的本机版本,而不是我用于部署的文件,它位于应用程序的根目录中.
如何让git push heroku master 使用正确的manage.py 文件?
【问题讨论】:
标签: django heroku manage.py askbot