2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-12-23 10:38:58 +00:00

fix: installer.py compatible with v14 (#1244)

This commit is contained in:
Revant Nandgaonkar 2023-10-22 14:24:52 +05:30 committed by GitHub
parent 1d17e8f752
commit cc326b625a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,6 +164,20 @@ def init_bench_if_not_exist(args):
], ],
cwd=os.getcwd() + "/" + args.bench_name, cwd=os.getcwd() + "/" + args.bench_name,
) )
cprint(
"Set redis_socketio to redis://redis-queue:6379 for backward compatibility", # noqa: E501
level=3,
)
subprocess.call(
[
"bench",
"set-config",
"-g",
"redis_socketio",
"redis://redis-queue:6379",
],
cwd=os.getcwd() + "/" + args.bench_name,
)
cprint("Set developer_mode", level=3) cprint("Set developer_mode", level=3)
subprocess.call( subprocess.call(
["bench", "set-config", "-gp", "developer_mode", "1"], ["bench", "set-config", "-gp", "developer_mode", "1"],
@ -188,6 +202,7 @@ def create_site_in_bench(args):
new_site_cmd.append(args.site_name) new_site_cmd.append(args.site_name)
cprint(f"Creating Site {args.site_name} ...", level=2)
subprocess.call( subprocess.call(
new_site_cmd, new_site_cmd,
cwd=os.getcwd() + "/" + args.bench_name, cwd=os.getcwd() + "/" + args.bench_name,