Skip to content

Instantly share code, notes, and snippets.

@abruzzi
Created March 5, 2014 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abruzzi/9361808 to your computer and use it in GitHub Desktop.
Save abruzzi/9361808 to your computer and use it in GitHub Desktop.
How to deploy your static application

Tools

  1. Middleman, static page generator
  2. Foundation 5, responsive web page css
  3. Github page, the awesome static page hosting
gem install middleman

will install the middleman itself.

Helper

middleman template with foundation 5

git clone git://github.com/axyz/middleman-zurb-foundation.git ~/.middleman/zurb-foundation

and then

middleman init my_static_app --template=zurb-foundation

ok,

gem install 'middleman-gh-pages'
echo "'middleman-gh-pages'" >> Rakefile
rake publish

will generate your static pages into side, and deploy it to github page (gh-pages branch)

Tips

add this 2 lines to your config.rb

activate :relative_assets
set :relative_links, true

if you are using custom domain and project name form: http://icodeit.org/placesihavebeen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment