Clone wiki

heroku-static-site / Home

heroku-static-site

Simple starter for deploying static website on Heroku cloud application platform.

How to use it

Preparation

  1. Follow the first 3 steps on Heroku quick start to get heroku toolbelt and create account.
  2. Clone this project in your machine: $ git clone https://bitbucket.org/mikus/heroku-static-site.git.
  3. Go into created project directory: $ cd heroku-static-site.
  4. Create project from Heroku: $ heroku create.
  5. Check the presence of a heroku remote in your repo: $ git remote -v.

Editing

  1. Edit files locally.
  2. Commit files to your local repo: $ git commit -am "commit message".

Deployment

  1. Push code to Heroku: $ git push heroku master.
  2. Try out the site via the Heroku link or use command $ heroku open.

Files

  • index.html — main page
  • index.php — fake file for telling Heroku to use undocumented php buildpack with Apache web server
  • .htaccess — Apache configuration file with directive to turn off php engine

Afterwords

You can read more about git deployment on Heroku.

Have fun!

Updated