docs: Add multi-tenancy support

This commit is contained in:
JJ-Cronos 2024-05-21 13:22:05 +02:00
parent 3015bed17d
commit b059fdba66
2 changed files with 10 additions and 0 deletions

View file

@ -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)

9
docs/multi-tenancy.md Normal file
View file

@ -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
```