应用程式与buildpack不相容

编程入门 行业动态 更新时间:2024-10-14 02:22:39
本文介绍了应用程式与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不相容

本文发布于:2023-11-17 02:42:30,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1608511.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:程式   不相容   buildpack

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!