I recently created a small website using HTML, CSS, Bootstrap, and JavaScript files. The main page is named index.html. However, I encountered an issue when trying to deploy it to my Heroku app (with the Node.js buildpack) as it kept showing an error message saying: "App not compatible with buildpack." How can I successfully upload my website to Heroku?
This is the output displayed:
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*