Example for creating a barebones static site on Heroku
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md
index.php

README.md

Heroku Static Site

This is an example for creating your own static sites on Heroku with a minimum of effort.

Steps

  1. Create an index.php file like the one you see here.
  2. Create a Heroku app (heroku create -s cedar).
  3. Commit your index.php file and push it to your Heroku app.

How Does It Work?

Simple. Heroku hosts PHP apps by launching them with their own Apache process inside a dyno. All you have to do is use the php extension so that Heroku thinks it's just another PHP app.

Example

My own static site