在尝试通过Heroku部署我的Django应用程序时,这是我得到的错误
$ git push heroku master
Counting objects: 53, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (49/49), done.
Writing objects: 100% (53/53), 88.34 KiB | 0 bytes/s, done.
Total 53 (delta 11), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Failed to detect set buildpack https://codon-buildpacks.s3.amazon
aws.com/buildpacks/heroku/python.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-fa
ilure
remote:
remote: ! Push failed
remote: Verifying deploy....
remote:
remote: ! Push rejected to murmuring-fortress-39283.
remote:
To https://git.heroku.com/murmuring-fortress-39283.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/murmuring-fortress-39
283.git'
我的目录的内容。
$ ls
_DS_Store guide/ manage.py* requirements.txt static_in_pro/ venv/
db.sqlite3 hacko/ Procfile runtime.txt templates/
输出到git远程版本。
$ git remote -v
heroku https://git.heroku.com/murmuring-fortress-39283.git (fetch)
heroku https://git.heroku.com/murmuring-fortress-39283.git (push)
输出到git状态
$ git status
On branch master
nothing to commit, working tree clean
requirements.txt的内容
dj-database-url==0.4.1
dj-static==0.0.6
Django==1.9
django-toolbelt==0.0.1
gunicorn==19.6.0
psycopg2==2.6.2
static3==0.7.0