This commit is contained in:
2025-01-08 23:34:15 -05:00
parent 35877c2762
commit c46b465a19
5 changed files with 21 additions and 8 deletions

View File

@@ -18,7 +18,10 @@ def handle_request(rq: DeployerRequest):
log_file = f"{log_folder}/{int(time())}.log"
subprocess.Popen(
f"sudo -E ./deploy.sh > {log_file} >2 {log_file}",
["./deploy.sh"],
user="root",
stdout=open(log_file, "w"),
stderr=open(log_file, "a"),
shell=True,
env=dict(
os.environ,