Skip to content

Latest commit

 

History

History
executable file
·
26 lines (18 loc) · 1.31 KB

README.markdown

File metadata and controls

executable file
·
26 lines (18 loc) · 1.31 KB

StaticMatic Starter!

This is what I use when I start a new StaticMatic project.

Setup

This project is now using bundler and RVM gem sets. This means setup is as simple as opening the console to the project directory and adding an RVM gem set:

rvm gemset create 'staticmatic-starter'
bundle install

Note: If you're not using RVM, you can still install the gems with bundler using bundle install. RVM gem sets are great because they let you isolate your gem libraries per project.

Compass Configuration

Now StaticMatic automatically detects the compass configuration and loads in your settings from /config/compass.rb. I currently have my configuration set such that relative_assets = true I often deploy to subdirectories on a development server to share my static prototypes. If you are deploying to root directories, you will probably want to comment out the relative_assets line or remove it.

Goodies

  • rake build builds the site
  • rake watch watches your project directory and automatically recompiles the site as you change files
  • rake push deploys the site (via rsync) to your remote server (based on your configurations in the rakefile)
  • rake deploy runs build and then push

That's about it, pretty simple really.