Hacker News new | ask | show | jobs
by javan 4434 days ago
For Ruby apps, there's also http://pow.cx/
3 comments

I really enjoy using Pow for non-Ruby apps too.

It handles the .dev DNS resolution, and also supports hosting domains that you map through /etc/hosts (ex: foo.company.com if you need to share cookies with a SSO server, but don't want all of company.com directed to your local machine)

It is much easier to configure than Apache vhosts for distributing traffic based on host name:

* symlink to Rack app for Ruby support. Name of symlink becomes hostname

* create a directory and symlink Public for static HTML. Directory name is hostname

* as sibling said, put port # in text file to proxy traffic to another process. File name is hostname

I use Anvil for Mac to do some of my Pow management.

I'm also using Apache to do SSL termination and proxy to Pow, as well as host some other stuff. But Pow is so easy to use for both static sites and proxying to another web server, I prefer it.

Instead of symlinking ~/.pow/example to (say) ~/Sites/example, you can `echo 3000 > ~/.pow/example` and example.dev will now point to port 3000.

This lets you boot up your Rails app normally, or via Procfiles, instead of booting up through all the pow.cx magic that can be a real pain to debug.

For pow there is http://anvilformac.com/ if you want a nice gui for managing your sites.

I like to setup our designers with this, but have found it useful myself from time to time.