fix: quote percent as mentioned in bench help

This commit is contained in:
Revant Nandgaonkar
2024-12-10 15:36:18 +05:30
parent 598c7dab43
commit 1505d125f1
7 changed files with 16 additions and 16 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 --mariadb-user-host-login-scope=% 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 --mariadb-user-host-login-scope=% 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 --db-root-password 123 --admin-password admin --mariadb-user-host-login-scope=% 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 `--mariadb-user-host-login-scope=%` 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).