如何将现有的Django应用程序迁移到Heroku?

时间:2014-09-25 04:43:15

标签: django git heroku

我使用these指令将我的Django应用程序(在笔记本电脑上本地运行)迁移到Heroku。

但是,当我尝试运行collectstatic命令时,出现错误:

$ heroku run python manage.py collectstatic
Running `python manage.py collectstatic` attached to terminal... up, run.1005
python: can't open file 'manage.py': [Errno 2] No such file or directory

我从包含manage.py的同一目录运行此命令。它就在那里。

$ ls manage.py
-rwxr-xr-x  1 myuser  wheel  261 Sep 24 22:49 manage.py*
(myEnv)$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

无需提交,工作目录清理

但是我猜测它没有在Heroku中出现。这就是我收到此错误的原因。我该如何解决这个问题?

0 个答案:

没有答案
相关问题