[英]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.