Local dev setup for multi-tenant applications
Chris Fidao Chris Fidao
15.7K subscribers
2,196 views
86

 Published On Oct 31, 2023

I'm doing some videos on setting servers up for multi-tenant applications. This means letting each customer/user have their own subdomain within your application.

To start, we setup our local dev environment to use dnsmasq + nginx to:

1. Map the domain used to a directory (where our code lives)
2. Setup specific apps to run with ANY subdomain so we can test a multi-tenant setup locally

⌚️ Timestamps
00:00 Intro
00:34 We use Brew
01:15 If you use PHP
02:29 Installing dnsmasq
04:58 Using dnsmasq to resolve hostnames
06:07 Install + Start Nginx
07:53 Map domain to app directory
12:16 Multi-tentant setup - mapping anysubdomain to an app
14:53 Nginx if you're not using PHP
15:41 Maybe just use Herd

show more

Share/Embed