Pow web server and static templates

I run the Pow web server (http://pow.cx/) for local development of Ruby web apps. But I also like to prototype sites as static html templates early on in development. Fortunately Pow can handle this as it will serve up html (etc.) from a site’s /public directory.

So create your Pow site as usual but be sure to put the static html in a /public subdirectory, e.g.:

  mkdir -p ~/Sites/prototypename/public
  cd ~/.pow
  ln -s ~/Sites/prototypename

Now you can access your site via http://prototypename.dev/ and it will serve up your ~/Sites/prototypename/public/index.html file.