更新 main.py

This commit is contained in:
jxxghp 2023-10-10 18:19:46 +08:00 committed by GitHub
parent ecc8b6b385
commit 2d989d4229
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ def start_frontend():
nginx_path = settings.ROOT_PATH / 'nginx' / 'nginx'
if Path(nginx_path).exists():
import subprocess
subprocess.Popen(f"start {nginx_path}", shell=True)
subprocess.Popen(nginx_path)
def stop_frontend():