Reputation: 301
I have a simple project consisting of three files which are the HTML, JavaScript and CSS files. I did everything on heroku which they said but then I got an error regarding some buildpack. So I used this particular answer to fix it. answer
then when did the command
git push heroku master
I didn't get any error but when I did open app from Heroku, There was a 404 error and description was nginx. I don't why this is happening but please tell me where am I going wrong.
Thanks in advance!
Upvotes: 0
Views: 671
Reputation: 438
You cant host static website on heroku the github pages will be better suitable
the best workaround is to trick the heroku that we are hosting the php app
convert nameindex.html
to home.html
create index.php
and write <?php include_once(“home.html”); ?>
on it
add composer.json
and push to heroku
Upvotes: 1