Heroku - 部署Django应用程序

时间:2018-05-08 20:35:58

标签: django heroku

我有在本地运行的应用程序。 它与gunicorn运行良好,我能够启动heroku本地。 我的文件结构: File Structure

我的Procfile:

web: PYTHONPATH=`pwd`/.. gunicorn --bind 0.0.0.0:8000 smartlogisticsserver.wsgi:application

Heroku构建服务器上的错误消息:

  

应用程序与buildpack不兼容:   https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz          更多信息:https://devcenter.heroku.com/articles/buildpacks#detection-failure!   推送失败

Pipefile:

[[[source]]

url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"


[requires]

python_version = "3.6"


[packages]

"psycopg2-binary" = "*"
django-heroku = "*"
gunicorn = "*"


[dev-packages]

和requirements.txt

aiohttp==3.2.0
alembic==0.9.9
async-timeout==3.0.0
attrs==18.1.0
awsebcli==3.12.4
blessed==1.14.2
botocore==1.10.12
cement==2.10.12
certifi==2018.4.16
chardet==3.0.4
click==6.7
clients==0.5
colorama==0.3.9
defusedxml==0.5.0
dj-database-url==0.5.0
Django==2.0.5
django-grappelli==2.11.1
django-heroku==0.3.1
dockerpty==0.4.1
docopt==0.6.2
docutils==0.14
Flask==1.0.2
Flask-Admin==1.5.1
Flask-Login==0.4.1
Flask-Migrate==2.1.1
Flask-SQLAlchemy==2.3.2
gunicorn==19.8.1
home==0.3.4
idna==2.6
idna-ssl==1.0.1
itsdangerous==0.24
Jinja2==2.10
jmespath==0.9.3
Mako==1.0.7
MarkupSafe==1.0
multidict==4.2.0
oauthlib==2.0.7
pathspec==0.5.6
psycopg2==2.7.4
psycopg2-binary==2.7.4
PyJWT==1.6.1
pyserial==3.4
python-dateutil==2.7.2
python-editor==1.0.3
python3-openid==3.1.0
pytz==2018.4
PyYAML==3.12
redis==2.10.6
requests==2.18.4
requests-oauthlib==0.8.0
rfxcom==0.5.0
semantic-version==2.5.0
simplejson==3.14.0
six==1.11.0
social-auth-app-django==2.1.0
social-auth-core==1.7.0
SQLAlchemy==1.2.7
tabulate==0.8.2
termcolor==1.1.0
urllib3==1.22
uWSGI==2.0.17
wcwidth==0.1.7
websocket-client==0.47.0
Werkzeug==0.14.1
whitenoise==3.3.1
WTForms==2.1
yarl==1.2.2

有什么建议我做错了吗? 谢谢。

0 个答案:

没有答案