mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-17 13:55:08 +00:00
Update single-server-example.md. added bench setup requirements so All app dependencies from pyproject.toml or requirements.txt are installed.
added docker compose --project-name erpnext-one exec backend bench setup requirements Running bench setup requirements after site creation ensures: All app dependencies from pyproject.toml or requirements.txt are installed. Any app hooks or modules that read common_site_config.json will work correctly. You only need to run bench setup requirements once per bench, even if you create multiple sites later.
This commit is contained in:
parent
8b523ca125
commit
86607238f3
1 changed files with 15 additions and 0 deletions
|
|
@ -188,6 +188,21 @@ docker compose --project-name erpnext-one exec backend \
|
|||
bench new-site --mariadb-user-host-login-scope=% --db-root-password changeit --install-app erpnext --admin-password changeit two.example.com
|
||||
```
|
||||
|
||||
Install Python dependencies for all apps (including your custom ones)
|
||||
```shell
|
||||
docker compose --project-name erpnext-one exec backend
|
||||
bench setup requirements
|
||||
```
|
||||
|
||||
Running bench setup requirements after site creation ensures:
|
||||
|
||||
All app dependencies from pyproject.toml or requirements.txt are installed.
|
||||
|
||||
Any app hooks or modules that read common_site_config.json will work correctly.
|
||||
|
||||
You only need to run bench setup requirements once per bench, even if you create multiple sites later.
|
||||
|
||||
|
||||
#### Create second bench
|
||||
|
||||
Setting up additional bench is optional. Continue only if you need multi bench setup.
|
||||
|
|
|
|||
Loading…
Reference in a new issue