应用程式与buildpack不相容-Heroku [英] App not compatible with buildpack - Heroku

查看:85
本文介绍了应用程式与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: 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 project-mm-beta.
remote:
To https://git.heroku.com/project-mm-beta.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/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不相容-Heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆