简体   繁体   English

在本地运行heroku时出错

[英]Error running heroku local

I would like to ask if you know this error I have during my heroku local command, Thanks for the help. 我想问一下,在heroku本地命令执行过程中是否遇到此错误,谢谢您的帮助。 My goal here is just to create my first django project to be deployed online. 我的目标只是创建第一个在线部署的django项目。 xD 的xD

cmd: heroku local 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):

I have already installed everything and requirements, I hope :D. 我已经安装了所有内容和要求,希望:D。 And here's my installed dependencies. 这是我安装的依赖项。 I hope nothing is missing. 我希望一切都不会丢失。

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

And this is my .gitignore file 这是我的.gitignore文件

venv
 *.pyc
staticfiles

This is my Procfile looks like 这是我的Procfile看起来像

web: gunicorn test_app.wsgi --log-file -

While my settings.py and wsgi.py was copy-pasted from the guide I am following. 在我遵循的指南中复制了我的settings.pywsgi.py时。 from heroku website : 从heroku网站:

https://devcenter.heroku.com/articles/getting-started-with-django https://devcenter.heroku.com/articles/getting-started-with-django

(Sorry about this 'coz I'm just a newbie here. :D) (对不起,因为我只是个新手。:D)

Please help me with this. 请帮我解决一下这个。

PS: I am using Python (2.7.9) and virtualenv (13.1.2) and heroku (heroku si running on my cmd) installed and declared it on the environment variables. PS:我正在使用Python(2.7.9)virtualenv(13.1.2)heroku (在我的cmd上运行的heroku si)安装并在环境变量上声明了它。

C:\Program Files (x86)\Heroku\bin

If you already dont have a Procfile.windows under your root of the project, create a file by that name. 如果您在项目的根目录下还没有Procfile.windows ,请使用该名称创建一个文件。 Add the following line into the file. 将以下行添加到文件中。

web: python manage.py runserver 0.0.0.0:5000

When running the heroku local, use the following command 在运行heroku本地时,使用以下命令

heroku local -f Procfile.windows

https://devcenter.heroku.com/articles/getting-started-with-python#declare-app-dependencies https://devcenter.heroku.com/articles/getting-started-with-python#declare-app-dependencies

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM