Wiki
Clone wikiheroku-static-site / Home
heroku-static-site
Simple starter for deploying static website on Heroku cloud application platform.
How to use it
Preparation
- Follow the first 3 steps on Heroku quick start to get heroku toolbelt and create account.
- Clone this project in your machine:
$ git clone https://bitbucket.org/mikus/heroku-static-site.git
. - Go into created project directory:
$ cd heroku-static-site
. - Create project from Heroku:
$ heroku create
. - Check the presence of a heroku remote in your repo:
$ git remote -v
.
Editing
- Edit files locally.
- Commit files to your local repo:
$ git commit -am "commit message"
.
Deployment
- Push code to Heroku:
$ git push heroku master
. - Try out the site via the Heroku link or use command
$ heroku open
.
Files
index.html
— main pageindex.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