Nick Hammond

Software Developer, Cyclist, & Traveler.

Resolving .dev to Localhost With Ansible & Nginx on OS X

When developing locally it’s nice to be able to have multiple applications running at once and at pre-determined local domains. The /etc/hosts is one of the simplest ways to configure this but you have to modify it each time you’d like to add a new domain for local development. Pow.cx made this incredibly easy for a while but the better approach is to be able to have a similar environment to what you’re running in production. Nginx is really easy to get up and running with and nice to work with so I’ll be using that.