Heroku buildpack推送时出错

2024-06-16 13:58:56 发布

您现在位置:Python中文网/ 问答频道 /正文

当我尝试添加我的github repoGitlink时,出现了以下错误

 !     No default language could be detected for this app.
        HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
        See https://devcenter.heroku.com/articles/buildpacks
 !     Push failed

怎么了


Tags: nogithubappdefaultfor错误bethis
1条回答
网友
1楼 · 发布于 2024-06-16 13:58:56

Heroku knows that your app is a Python app by the existence of one of two files in the root of your application:

  • PipFile
  • requirements.txt

您应该设置requirements.txtPipfile,以便在Heroku上完成您的项目。此外,如果您需要一个数据库,您将需要Postgres作为部署数据库

您可以在docsgetting started guide中查看更多信息

相关问题 更多 >