如何在没有 package.json 的情况下部署到 heroku 简单网站
How to deploy to heroku simple website without package.json
我没有使用过 heroku 支持的任何语言,比如 node.js。其简单的 HTML、CSS 网站。没有 package.json 文件。当我试图推送到 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
Heroku 不适用于托管静态站点。但如果你必须这样做,你可以让它认为你有一个 php 网站,它会使用那个构建包。
我没有使用过 heroku 支持的任何语言,比如 node.js。其简单的 HTML、CSS 网站。没有 package.json 文件。当我试图推送到 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
Heroku 不适用于托管静态站点。但如果你必须这样做,你可以让它认为你有一个 php 网站,它会使用那个构建包。