我刚刚成功将 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`
好吧,我真的不知道这是否是问题所在,但manage.py
in.askbot/setup_templates/
包含应用程序的本机版本文件,而不是我用于部署的文件,它位于应用程序的根目录中。
我怎样才能git push heroku master
使用正确的manage.py
文件?