Is it possible to upload a simple html and javascript file structure to heroku?

前端 未结 10 1586
逝去的感伤
逝去的感伤 2020-12-04 06:25

I\'m trying to deploy an open source project of mine to heroku, it is by necessity very simple with just static html and javascript. But do they not support static sites?

10条回答
  •  执念已碎
    2020-12-04 06:53

    2020 Update:

    If you get a blank page with the PHP answer mentioned here, try this - If your homepage is at index.html :

    echo '' > index.php
    echo '{}' > composer.json
    

    Creating a Git repo and committing after adding files :

    git init
    git add .
    git commit -m "My site ready for deployment."
    

    Heroku deployment -

    heroku login
    heroku apps:create my-static-site-example
    git push heroku master
    

提交回复
热议问题