mirror of
https://github.com/frappe/bench.git
synced 2025-01-10 09:02:10 +00:00
fix: avoid circular imports and optimization
This commit is contained in:
parent
1f0b78f2fe
commit
9e7b8d1f2e
@ -8,7 +8,6 @@ import bench
|
|||||||
from bench.app import get_current_frappe_version, use_rq
|
from bench.app import get_current_frappe_version, use_rq
|
||||||
from bench.utils import get_bench_name, find_executable
|
from bench.utils import get_bench_name, find_executable
|
||||||
from bench.config.common_site_config import get_config, update_config, get_gunicorn_workers
|
from bench.config.common_site_config import get_config, update_config, get_gunicorn_workers
|
||||||
from bench.config.production_setup import service
|
|
||||||
|
|
||||||
# imports - third party imports
|
# imports - third party imports
|
||||||
import click
|
import click
|
||||||
@ -65,6 +64,8 @@ def get_supervisord_conf():
|
|||||||
|
|
||||||
def update_supervisord_conf(user):
|
def update_supervisord_conf(user):
|
||||||
"""From bench v5.0, we're moving to supervisor running as user"""
|
"""From bench v5.0, we're moving to supervisor running as user"""
|
||||||
|
from bench.config.production_setup import service
|
||||||
|
|
||||||
supervisord_conf = get_supervisord_conf() or "supervisord.conf"
|
supervisord_conf = get_supervisord_conf() or "supervisord.conf"
|
||||||
section = "unix_http_server"
|
section = "unix_http_server"
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import subprocess
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# imports - module imports
|
# imports - module imports
|
||||||
from bench.utils import log, get_cmd_output, exec_cmd, which
|
from bench.utils import get_cmd_output, exec_cmd, which
|
||||||
from bench.cli import change_uid_msg
|
from bench.cli import change_uid_msg
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user