Quick Start

gommmmmm edited this page Sep 13, 2010 · 6 revisions

Install

Install SmallCage using RubyGems .

$ gem install smallcage

Initialize

Retrieve site skeleton with smc import command.

$ mkdir mysite
$ cd mysite
$ smc import

Update

Update files under current directory:

$ smc update

Update a single file or directory:

$ smc update ./index.html.smc

SmallCage creates index.html from index.html.smc.

HTTP server

To preview your sites via HTTP,

$ smc server . 8080

Then access http://localhost:8080/ .

Press Control-C to stop the server.

Auto update

To automatically execute publishing on every modification:

 $ smc auto 

Start auto updating and HTTP server for preview:

$ smc auto . 8080

Then updated pages will be shown in http://localhost:8080/_smc/auto automatically.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.