在heroku中部署HTML应用程序时出现构建错误

build error while deploying a html application in heroku

本文关键字:构建 错误 应用程序 heroku 部署 HTML      更新时间:2023-09-26

我已经上传了一个html应用程序在github,但同时试图部署它在heroku我得到这个错误:

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

设置此构建包https://github.com/heroku/heroku-buildpack-static

$ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-static.git