Hi, I'm Samuel Cochran

on Twitter, Facebook, Google, LinkedIn, GitHub, Stack Overflow, and Steam.

How to install Pow from source on OS X

A couple of people have asked me, so:

  1. Install Xcode if you haven't already.
  2. Install Homebrew and be one of the cool kids:
    curl https://gist.github.com/raw/323731/install_homebrew.rb | bash
  3. Install Node.js:
    brew install node
  4. Install npm:
    curl http://npmjs.org/install.sh | sh
  5. Clone pow git repository somewhere safe (I use ~/Development):
    git clone https://github.com/37signals/pow.git
  6. Inside your new pow checkout, install the development dependencies. Run:
    npm install --dev
  7. If you haven't installed Pow before, setup the ~/.pow directory:
    mkdir -p ~/Library/Application\ Support/Pow/Hosts && ln -s ~/Library/Application\ Support/Pow/Hosts ~/.pow
    and the firewall forwarding and resolvers:
    sudo ./bin/pow --install-system
    sudo launchctl load /Library/LaunchDaemons/cx.pow.firewall.plist
  8. Finally, run pow (send an interrupt to quit):
    ./bin/pow

You have a couple of other options. Get a list of cake tasks with ./node_modules/coffee-script/bin/cake then run tasks with ./node_modules/coffee-script/bin/cake <task> (or install cake globally -- it's similar to make or rake but for coffee script). You can also check out the Cakefile. A good one is cake watch which will stay running and watch your coffee files for changes, recompiling them into javascript as neccessary.

If you don't already have pow installed, you'll need to create the firewall rule to forward all port 80 traffic to pow and add the DNS resolver for the dev TLD. To do this, run cake install as above.

Have fun!