-
you should have bundler and heroku gems, if not you can install it
gem install heroku bundler
-
Clone this project
git clone git://github.com/lguardiola/static-site-template.git my_new_static_site
-
Unlink original github reference
cd my_new_static_site
git remote rm origin
-
Create a Heroku application
heroku apps:create my_new_static_site
-
Install gems
bundle --path=.bundle
-
copy or create new files to public
cd public #("copy or create files here...")
note: to test this site, run localy a rackup server, on this way into your project base directory..
rackup[enter]
at this moment you can navigate localy http://localhost:9292/ to see you static site
-
add new files to the repository
git add .
-
commit the changes
git commit -m "add some files"
-
push and deploy to heroku
git push heroku master
-
navigate site
heroku open