更新 main.py

This commit is contained in:
jxxghp
2023-10-10 18:19:46 +08:00
committed by GitHub
parent ecc8b6b385
commit 2d989d4229

View File

@ -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():