A simple way is to masquerade the HTML app as a PHP App.
Heroku properly identifies PHP apps.
- Rename your index.html file to home.html.
-
Create an index.php file and include your entry html file. If your HTML entry file is named home.html as recommended, your index.php should look like:
<?php include_once("home.html"); ?> -
In your command line on the machine you are pushing from, type:
git add .
git commit -m 'your commit message'
git push heroku master
Heroku should properly detect your app now as a php app:
-----> PHP app detected
-----> Bundling Apache version 2.2.22
-----> Bundling PHP version 5.3.10
-----> Discovering process types
Procfile declares types -> (none)
Default types for PHP -> web
-----> Compiled slug size: 9.9MB
-----> Launching... done, v3
...
Mad Thanks to lemiffe for his blog post: http://www.lemiffe.com/how-to-deploy-a-static-page-to-heroku-the-easy-way/