diff --git a/README.md b/README.md index 2f1ea388..9a43ec87 100644 --- a/README.md +++ b/README.md @@ -107,5 +107,6 @@ First site's Administrator password: admin - [Docker Image Development](docs/Docker-Image-Development.md) - [Container Aliases for easier development](docs/container-aliases.md) +- [Multi-tenancy Setup in Development (Developing on multiple site)](docs/multi-tenancy.md) - [Bench Console and VSCode Debugger](docs/bench-console-and-vscode-debugger.md) - [Connect to localhost services](docs/connect-to-localhost-services-from-containers-for-local-app-development.md) diff --git a/docs/multi-tenancy.md b/docs/multi-tenancy.md new file mode 100644 index 00000000..b11ea1d8 --- /dev/null +++ b/docs/multi-tenancy.md @@ -0,0 +1,9 @@ +# Setting up Multi-tenancy +If you are in development and want to develop with multiple sites installed, yo have to setup multi-tenancy using the hosts file. +This will behave similarly to [multi-tenancy based on DNS in production](https://frappeframework.com/docs/user/en/bench/guides/setup-multitenancy). + +For each site run the following script + +```sh +bench --site sitename add-to-hosts +```