Ever needed to setup a local SaaS app development server? Is your /etc/hosts file a mess? Me too!

Landrush to the rescue! Previously you’d setup dnsmasq locally to handle this on your physical machine, but if you’re in Vagrant you need to point to the IP of the virtual machine via Vagrant so it gets messy. Landrush is a magical piece of software that handles setting up a daemon in your Vagrant machine that solves this across the board.

Simply install the vagrant plugin locally:

vagrant plugin install landrush

Next, setup your Vagrantfile to properly set the hostname and the daemon to list on *.{hostname}

# -*- mode: ruby -*-
# vi: set ft=ruby :

ip_address = ""
app_name = "myapp"
hostname = app_name + '.dev'

# ========================================================================

Vagrant.configure(2) do |config|
  # Landrush: https://github.com/phinze/landrush
  config.landrush.enabled = true
  config.landrush.tld = 'dev'
  config.landrush.host hostname, ip_address
Categories: Random


bart · December 16, 2019 at 6:07 am

Is it still working on Ubuntu 18.04?

    Jake Litwicki · December 20, 2019 at 9:16 am

    I can’t say I’ve been able to test that.

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *