Using Dnsmasq for local development on OS X
21–30 of 39 posts
Re: Using Dnsmasq for local development on OS X
#22Re: Using Dnsmasq for local development on OS X
#23Re: Using Dnsmasq for local development on OS X
#24For Ruby apps, there's also http://pow.cx/
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
#25What are the advantages of using an approach like this vs. editing /etc/hosts directly?
Re: Using Dnsmasq for local development on OS X
#26I 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.
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.
Re: Using Dnsmasq for local development on OS X
#27Re: Using Dnsmasq for local development on OS X
#28Re: Using Dnsmasq for local development on OS X
#29Re: Using Dnsmasq for local development on OS X
#30Genuinely curious: when & why would I want to use myproject.dev:port over localhost:port?