fix: --no-mariadb-socket & --mariadb-root-password is DEPRECATED

This commit is contained in:
0xD0M1M0
2024-12-07 15:30:46 +01:00
parent beecd99686
commit 598c7dab43
6 changed files with 17 additions and 17 deletions

View File

@@ -144,7 +144,7 @@ sed -i '/redis/d' ./Procfile
You can create a new site with the following command:
```shell
bench new-site --no-mariadb-socket sitename
bench new-site --mariadb-user-host-login-scope=% sitename
```
sitename MUST end with .localhost for trying deployments locally.
@@ -152,18 +152,18 @@ sitename MUST end with .localhost for trying deployments locally.
for example:
```shell
bench new-site --no-mariadb-socket development.localhost
bench new-site --mariadb-user-host-login-scope=% development.localhost
```
The same command can be run non-interactively as well:
```shell
bench new-site --mariadb-root-password 123 --admin-password admin --no-mariadb-socket development.localhost
bench new-site --db-root-password 123 --admin-password admin --mariadb-user-host-login-scope=% development.localhost
```
The command will ask the MariaDB root password. The default root password is `123`.
This will create a new site and a `development.localhost` directory under `frappe-bench/sites`.
The option `--no-mariadb-socket` will configure site's database credentials to work with docker.
The option `--mariadb-user-host-login-scope=%` will configure site's database credentials to work with docker.
You may need to configure your system /etc/hosts if you're on Linux, Mac, or its Windows equivalent.
To setup site with PostgreSQL as database use option `--db-type postgres` and `--db-host postgresql`. (Available only v12 onwards, currently NOT available for ERPNext).