Live data from Hacker News

Using Dnsmasq for local development on OS X

passingcuriosity.com

21–30 of 39 posts

Re: Using Dnsmasq for local development on OS X

#24
post #3

For Ruby apps, there's also http://pow.cx/

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.

Re: Using Dnsmasq for local development on OS X

#26
post #7

I wrote - http://invoker.codemancers.com/ for similar use. It provides easy to use `.dev` local domain support and then ability to manage multiple processes via a Procfile or custom ini file.

Thanks for this. Procfile support has been a thorn in my side with pow for ages.

Edit: Invoker doesn't seem to support the pow use case -- local configuration, not global. Inspired by the topic, I found https://github.com/riywo/anypow , which has a wrapper for non-rack applications, and can be used to make pow play nice with Procfiles.

Post reply on HN