Javascript 在heroku中部署html文件网站

Javascript 在heroku中部署html文件网站,javascript,html,css,node.js,heroku,Javascript,Html,Css,Node.js,Heroku,我已经建立了一个小网站使用html,css,引导和javascript文件。主页是index.html。我试图将它部署到我的heroku应用程序(buildpack是nodejs),但每次都说:应用程序与buildpack不兼容。我如何在那里上传我的网站 这就是它所显示的: D:\Projects\herokudeploy>git push heroku master Counting objects: 572, done. Delta compression using up to 4

我已经建立了一个小网站使用html,css,引导和javascript文件。主页是index.html。我试图将它部署到我的heroku应用程序(buildpack是nodejs),但每次都说:应用程序与buildpack不兼容。我如何在那里上传我的网站

这就是它所显示的:

D:\Projects\herokudeploy>git push heroku master Counting objects: 572, done. Delta compression using up to 4 threads. Compressing objects: 100% (477/477), done. Writing objects: 100% (572/572), 17.28 MiB |
48.00 KiB/s, done. Total 572 (delta 58), reused 570 (delta 57)
    remote: Compressing source files... done.
    remote: Building source:
    remote:
    remote: -----> App not compatible with buildpack: 
    https://github.com/heroku/heroku-buildpack-static.git
    remote:        More info: 
    https://devcenter.heroku.com/articles/buildpacks#detection-failure
    remote:
    remote:  !     Push failed
    remote: Verifying deploy...
    remote:
    remote: !       Push rejected to sobhannwebsite.
    remote:
    To *heroku url address*
     ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to *heroku url address*

设置节点应用程序时,Heroku希望您部署节点应用程序。目前我不认为你可以在Heroku上添加一堆HTML和CSS并运行它。你需要一个Python、NodeJS、Go等服务器来运行你的应用程序

您正在使用的需要一个
static.json
文件才能运行。该文件需要位于存储库的根目录下

您应该能够将该文件的内容设置为空哈希,
{}

GitHub上的buildpack自述文件提供了您可以在该文件上为静态站点设置的所有配置