fix: make changes for backward compat

make changes for refactor to work on existing setups
This commit is contained in:
Revant Nandgaonkar
2022-03-07 12:30:23 +05:30
parent e1f32b7476
commit 09060341c7
2 changed files with 32 additions and 25 deletions

View File

@@ -82,6 +82,26 @@ Notes:
- The local deployment is for testing and REST API development purpose only
- A complete development environment is available [here](../development)
## Create Site
Set environment variables
```sh
export $(cat .env | xargs)
```
Create site as per use and install apps optionally.
```sh
docker-compose exec erpnext-python bench new-site ${SITE_NAME} --mariadb-root-username=${DB_ROOT_USER} --mariadb-root-password=${MYSQL_ROOT_PASSWORD} --admin-password=${ADMIN_PASSWORD} --install-app=${INSTALL_APPS} --db-type=mariadb --no-mariadb-socket
```
If this is the first site created then remove `currentsite.txt` to unset default site.
```sh
docker-compose exec erpnext-python rm -f currentsite.txt
```
## Docker containers
The docker-compose file contains following services: