[英]Error running heroku local
我想问一下,在heroku本地命令执行过程中是否遇到此错误,谢谢您的帮助。 我的目标只是创建第一个在线部署的django项目。 的xD
cmd: heroku本地
(venv_heroku) C:\Python27\venv_heroku\heroku-django\test_app>heroku local
forego | starting web.1 on port 5000
web.1 | '"C:\Users\Raguine\AppData\Roaming\Microsoft\Windows\IEUpdate\logagent.exe"' is not recognized as an internal or external command,
web.1 | Traceback (most recent call last):
我已经安装了所有内容和要求,希望:D。 这是我安装的依赖项。 我希望一切都不会丢失。
dj-database-url==0.3.0
dj-static==0.0.6
Django==1.7.10
django-toolbelt==0.0.1
gunicorn==19.3.0
psycopg2==2.5.2
static3==0.6.1
这是我的.gitignore文件
venv
*.pyc
staticfiles
这是我的Procfile看起来像
web: gunicorn test_app.wsgi --log-file -
在我遵循的指南中复制了我的settings.py和wsgi.py时。 从heroku网站:
https://devcenter.heroku.com/articles/getting-started-with-django
(对不起,因为我只是个新手。:D)
请帮我解决一下这个。
PS:我正在使用Python(2.7.9)和virtualenv(13.1.2)和heroku (在我的cmd上运行的heroku si)安装并在环境变量上声明了它。
C:\Program Files (x86)\Heroku\bin
如果您在项目的根目录下还没有Procfile.windows
,请使用该名称创建一个文件。 将以下行添加到文件中。
web: python manage.py runserver 0.0.0.0:5000
在运行heroku本地时,使用以下命令
heroku local -f Procfile.windows
https://devcenter.heroku.com/articles/getting-started-with-python#declare-app-dependencies
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.