Frappe_docker 404 page not found after adding another site to SITES in .env

I followed the setup for single bench for 1 site and it worked, now I have added another site, and here is my .env:

SITE_NAME=erp1.[domain].com
SITES=`erp1.[domain].com,erp2.[domain].com`

NEW

SITE_NAME=erp2.[domain].com
SITES=`erp1.[domain].com,erp2.[domain].com`

I ran docker-compose pull and up -d and the logs from site-creator indicate that the site was created but both sites are giving 404 errors.

Here’s someone who was lucky to install multi tenant setup.

Check traefik dashboard, services, routers, etc. Nothing much I can help.

I can install it on your server if you add my ssh keys.

2 Likes

Just off hand, your sites variable looks wrong. Each site name needs to be wrapped in backticks individually. At the moment, your server is being told you have one site called erp1.[domain].com,erp2.[domain].com, which of course doesn’t resolve.

2 Likes

I missed that! Thanks!