[英]Foreman start can't find Procfile, deploying Django app to Heroku
似乎是一個相當簡單的問題,但似乎無法弄明白。 我一直在關注Heroku的Django指令(https://devcenter.heroku.com/articles/django#using-a-different-wsgi-server)
我正在嘗試創建一個Procfile,在Foreman啟動時在本地運行它。 我已經下載並安裝了Gunicorn和Gevent,在我的root中手動添加了一個名為Procfile的.txt文件(讓我知道是否有更好的方法來執行此操作,然后添加新的文本文件並將其命名為Procfile),但Foreman啟動仍然保持返回
(venv)c:\users\chris\hellodjango>foreman start
ERROR: Procfile does not exist.
這是我的目錄:
hellodjango/
.gitignore
manage.py
requirements.txt
Procfile.txt
hellodjango/
__init__.py
__init__.pyc
settings.py
settings.pyc
urls.py
urls.pyc
wsgi.py
wsgi.pyc
venv/
Include/
Lib/
Scripts/
我的requirements.txt內容是
Django==1.4.2
distribute==0.6.28
dj-database-url==0.2.1
psycopg2==2.4.5
wsgiref==0.1.2
gunicorn==0.15.0
我的Procfile.txt內容是
web: gunicorn hellodjango.wsgi -b 0.0.0.0:$PORT
我錯過了什么,為什么我的應用程序找不到ProcFile?
Procfile不應該有'.txt'擴展名。 你把它稱為'Procfile.txt'。 應該只是'Procfile'。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.