更新 main.py
This commit is contained in:
parent
ecc8b6b385
commit
2d989d4229
@ -68,7 +68,7 @@ def start_frontend():
|
|||||||
nginx_path = settings.ROOT_PATH / 'nginx' / 'nginx'
|
nginx_path = settings.ROOT_PATH / 'nginx' / 'nginx'
|
||||||
if Path(nginx_path).exists():
|
if Path(nginx_path).exists():
|
||||||
import subprocess
|
import subprocess
|
||||||
subprocess.Popen(f"start {nginx_path}", shell=True)
|
subprocess.Popen(nginx_path)
|
||||||
|
|
||||||
|
|
||||||
def stop_frontend():
|
def stop_frontend():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user