Fix installer.py (#1571)
* Update installer.py
Revising the `installer.py` script. The script is facing an issue during execution as it required interactive input for the root username unless the username was provided as a flag 42f9e537d0/frappe/installer.py (L157-L158). Resolving this by passing the username as a flag allows the script to proceed successfully.
* ci: pin pre-commit/prettier to 3.5.2
---------
Co-authored-by: Revant Nandgaonkar <revant.one@gmail.com>
This commit is contained in:
@@ -27,6 +27,8 @@ repos:
|
||||
rev: v4.0.0-alpha.8
|
||||
hooks:
|
||||
- id: prettier
|
||||
additional_dependencies:
|
||||
- prettier@3.5.2
|
||||
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
rev: v2.4.1
|
||||
|
||||
@@ -207,6 +207,7 @@ def create_site_in_bench(args):
|
||||
new_site_cmd = [
|
||||
"bench",
|
||||
"new-site",
|
||||
f"--db-root-username=root",
|
||||
f"--db-host=mariadb", # Should match the compose service name
|
||||
f"--db-type={args.db_type}", # Add the selected database type
|
||||
f"--mariadb-user-host-login-scope=%",
|
||||
@@ -222,6 +223,7 @@ def create_site_in_bench(args):
|
||||
new_site_cmd = [
|
||||
"bench",
|
||||
"new-site",
|
||||
f"--db-root-username=root",
|
||||
f"--db-host=postgresql", # Should match the compose service name
|
||||
f"--db-type={args.db_type}", # Add the selected database type
|
||||
f"--db-root-password=123", # Replace with your PostgreSQL password
|
||||
|
||||
Reference in New Issue
Block a user