-
Notifications
You must be signed in to change notification settings - Fork 257
Installation
The recommended way to install Pow is from the latest official release package. Open a terminal and run this command:
$ curl get.pow.cx | sh
The installation script downloads the latest release of Pow, unpacks it into ~/Library/Application Support/Pow
, generates and installs local and system configuration files, and boots the server.
You can also install Pow from source, but it's a more complicated process. This is a good option if you want to contribute to Pow. It's also suitable for anyone averse to running shell scripts from the internet. Finally, it's necessary if you're using a 32-bit Mac.
You'll need Node.js 0.4.x to run Pow. A good way to install Node on OS X is via the Homebrew package manager. With Homebrew, just run:
$ brew install node
You can also check out the Node source and install it yourself.
Pow's library dependencies are managed with npm, the Node package manager. Pow requires npm 1.0 or higher. The easiest way to install npm is by using its installation script:
$ curl http://npmjs.org/install.sh | sh
Of course, if you're the tinfoil-hat type, you'll want to go through one of the more laborious installation procedures outlined in the npm readme.
Using git, check out a fresh copy of the Pow source code:
$ git clone https://github.com/37signals/pow.git
$ cd pow
This will give you the bleeding-edge development version of Pow. You can check out a release tag if you aren't up for the ride. For example, to check out version 0.3.0:
$ git checkout v0.3.0
From your Pow checkout, run this command:
$ npm install
$ cake install
$ cake start
This installs Pow's dependencies the repositories' node_modules
directory. It also invokes the Pow installer which generates and installs local and system configuration files.
If you want Pow to be started with launchd everytime you login run:
$ launchctl load -Fw "$HOME/Library/LaunchAgents/cx.pow.powd.plist"