Try ERPNext Buy Support Partners Foundation

How enable port based multi sites in dev environment?

how can I enable port based multi sites in dev environment? it’s a docker installation on my laptop, any pointers?

I tried bench set-nginx-port site2name 82,
but only the first site that installed always starts, other other site seems not able to acces.

Look to some help here. Thanks!

No port based multi sites in dev environment.

All sites on dev bench will be served on port 8000.
there is site name based multitenency in dev bench.

for sitename based multi sites, edit common_site_config.json and set “serve_default_site” to false. Remove sites/currentsite.txt.
Stop and start bench to start serving multiple sites on same port.

Nginx does the port based multi tenancy in production. Nginx does not exist in development.

2 Likes