pow provides local domain names (like
http://oxox.dev/). It works by injecting the following things to system:
http://localhostand other applications
brew install pow AND execute what you are instructed.
% brew install pow Create the required host directories: mkdir -p ~/Library/Application\ Support/Pow/Hosts ln -s ~/Library/Application\ Support/Pow/Hosts ~/.pow Setup port 80 forwarding and launchd agents: sudo pow --install-system pow --install-local Load launchd agents: sudo launchctl load -w /Library/LaunchDaemons/cx.pow.firewall.plist launchctl load -w ~/Library/LaunchAgents/cx.pow.powd.plistd.
If this succeeds, you should see a page at
I have a rails app in
The following command register it in
so accesses to
http://demo_app.dev are routed to it.
The domain name is determined by name of the symlink.
% ln -s ~/demo_app ~/.pow/
Bundler::GemNotFound at first.
GEM_HOME=~/.gem is specified in .zshrc,
which is not used by pow and applications it runs.
export GEM_HOME=~/.gem to APP_ROOT/.powenv file.
Note: RVM may use more complex env for ruby and gems. They can be generated with
rvm env > APP_ROOT/.powenv
demo_app.dev in address bar may be redirected to search page.
powder provides convenient commands to pow.
Restart on each request (does not reload
.powenv and so on):
Static sites can also be hosted. The static files should reside in
% echo 3000 > ~/.pow/nanoc
Source: Port proxying
So people in same LAN can access the app at
prax is an alternative for Linux. It uses:
nsswitchtrick to take over routing