'使用Flask,无法检测此应用的默认语言

时间:2017-05-08 20:16:17

标签: python python-3.x heroku

我有一个Flask应用程序,可以在Heroku本地运行。但是,当我尝试git push heroku master时,我收到错误No default language could be detected for this app.

使用heroku buildpacks:set heroku/python手动设置buildpack,然后尝试推送也会出错:Failed to detect app matching https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz buildpack

这是错误,因为我的项目中有Python以外的文件类型吗?项目结构如下,data文件夹包含几种不同的文件类型。

app/
    data/
    model/
    utils/
static/
    css/
templates/
Procfile
README.md
requirements.txt
runtime.txt
run.py

如果是,那么推荐的行动方案是什么?

1 个答案:

答案 0 :(得分:0)

出于某种原因,当我切换到master分支时,我能够成功推送。