Heroku | Host Static HTML or Single Page Application on Heroku3:00 PM
We have been massively using Heroku in and out and quite often you might need to perform proof of...
We have been massively using Heroku in and out and quite often you might need to perform proof of concepts (POC) based your html application on Heroku. I cleaned up all my code and wrote a bootstrap code for (php based) just to launch your html instantly.
How to host your html on Heroku (Php container)
I wrote a php trigger (.php) which spins up heroku container with php environment, that's all you need, this php, in-turn launch index. html on application and dang, that's what you need to host your html instantly
Simply fork the code from this repository, replace your html and launch you html application instantly.
How to host your html on Heroku using Node.Js with Express FrameworkSince php was fun, why not make a simple node.js application and host it on Heroku. So I spun a basic node.js application and simply loaded application server, which on load in turn route to defaulted index.html. You can fork repository from here
Here is app.js