我正在尝试使用heroku-django-template将我现有的Django项目推送到Heroku,作为修改我的django项目的参考。
我的解释器是Python 2.7.14,我没有使用虚拟环境。
但经过一整天的尝试,我只是反复得到这个错误:
remote: -----> App not compatible with buildpack: https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote: More info:https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to py-mosaic-image.
remote:
To https://git.heroku.com/py-mosaic-image.git
! [remote rejected] master -> master (pre-receive hook declined)
这是我的字典:
-- .git/
-- my-project/
---- some-app-dir/
---- some-app-dir/
---- my-project/
---- __init__.py
---- .env
---- db.sqlite3
---- manage.py
---- Pipfile
---- Pipfile.lock
---- Procfile
---- requirements.txt
---- runtime.txt
这里有一些代码(很多是由heroku-django-template生成的)
.ENV
WEB_CONCURRENCY=2
Pipfile(忽略一些\ r)
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[requires]
python_version = "2.7"
[packages]
dj-database-url = "==0.4.2"
django = "==2.0"
gunicorn = "==19.7.1"
"psycopg2" = "==2.7.3.2"
whitenoise = "==3.3.1"
[dev-packages]
Procfile
web: gunicorn py-mosaic-image.wsgi --log-file -
requirements.txt
attrs==17.4.0
autobahn==17.10.1
Automat==0.6.0
backports.functools-lru-cache==1.4
constantly==15.1.0
cycler==0.10.0
Django==1.8.18
django-socket-server==0.0.4
django-socketio==0.3.9
gevent==1.2.2
gevent-socketio==0.2.1
gevent-websocket==0.10.1
greenlet==0.4.12
gunicorn==19.7.1
hyperlink==17.3.1
incremental==17.5.0
matplotlib==2.1.0
numpy==1.13.3
olefile==0.44
Pillow==4.3.0
PyAudio==0.2.11
pyparsing==2.2.0
python-dateutil==2.6.1
pytz==2017.3
scipy==1.0.0
six==1.11.0
sphinx-me==0.3
Twisted==17.9.0
txaio==2.8.2
websocket==0.2.1
zope.interface==4.4.3
runtime.txt
python-2.7.14
有谁知道这有什么问题?我搜索并尝试但都失败了:(