[英]App not compatible with buildpack - Heroku/python
尝试将我的项目推送到 GitHub 以与 Heroku 连接时收到此消息
-----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
Push failed
我已经将我的Requirements.txt
和Procfile
放在了根目录中。 我的Requirements.txt
看起来像这样:
json5==0.8.5
jsonschema==2.6.0
regex==2018.2.21
requests==2.23.0
schedule==0.6.0
spotipy==2.12.0
tweepy==3.8.0
我的Procfile
看起来像这样:
worker: python app.py
我的 GitHub 回购是: https://github.com/dahliahadfury/Spotify-recommendation
我已经将我的
Requirements.txt
和Procfile
放在了根目录中
案例很重要。 需求文件必须命名为requirements.txt
(全部小写)。
重命名您的需求文件,再次提交并部署:
git mv Requirements.txt requirements.txt
git commit -m "Fix name of requirements file"
git push heroku master
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.