Skip to content

Instantly share code, notes, and snippets.

@irfanfadilah
Last active October 9, 2018 11:58
Show Gist options
  • Save irfanfadilah/355c694d42b4f9a20756 to your computer and use it in GitHub Desktop.
Save irfanfadilah/355c694d42b4f9a20756 to your computer and use it in GitHub Desktop.
Rails Subdomain Development with DNSMasq
Ubuntu:
sudo apt-get install dnsmasq
sudo gedit /etc/dnsmasq.conf
add: address=/rails.env/127.0.0.1
sudo service dnsmasq restart
Mac:
brew install dnsmasq
sudo nano /usr/local/etc/dnsmasq.conf
add: address=/rails.env/127.0.0.1
brew services restart dnsmasq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment