CopyAndPaste

random programming notes

Restarting Pow

Pow is a zero configuration web server for ruby on rails development. You can download it from pow.cx.

While it’s easy to install, sometimes you will need to restart it to keep things working.

The easiest way is to do this under the rails app folder:

1
~ michael$ touch tmp restart.txt

The command restart the server. What if the pow itself does not respond at all and touching the restart.txt does not work?

You can restart the service as follow:

1
2
~ michael$ launchctl unload -Fw ~/Library/LaunchAgents/cx.pow.powd.plist
~ michael$ launchctl load -Fw ~/Library/LaunchAgents/cx.pow.powd.plist