本文介绍了应用程式与buildpack不相容-Heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行git push heroku master时,这就是我得到的:
When I run git push heroku master this is what I get:
C:\Users\Emanuele-PC\Desktop\project-mm-beta>git push heroku master Counting objects: 3, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 505 bytes | 0 bytes/s, done. Total 3 (delta 0), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> App not compatible with buildpack: codon-buildpacks.s3.amazonaws/buildpacks/heroku/python.tgz remote: More info: devcenter.heroku/articles/buildpacks#detection-failure remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to project-mm-beta. remote: To git.heroku/project-mm-beta.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git.heroku/project-mm-beta.git'我要部署的代码只是一个文件(这是一个测试,因为这是我第一次使用Heroku),它是用Python编写的.我已经设置了buildpack(python),但仍然无法正常工作.我该怎么解决?
The code I am trying to deploy is just one file (it's a test because it's my first time using Heroku) and it's written in Python. I have already set the buildpack (python) but it still doesn't work. How can I solve?
推荐答案仅当应用程序在根目录中具有Pipfile或requirements.txt时,才会将Heroku Python支持应用于应用程序.
The Heroku Python Support will be applied to applications only when the application has a Pipfile or requirements.txt in the root directory.
访问文档以获取详细说明.
更多推荐
应用程式与buildpack不相容
发布评论