remove shell arg
This commit is contained in:
@@ -33,6 +33,8 @@ def handle_request(rq: DeployerRequest):
|
|||||||
)
|
)
|
||||||
print(by_branch)
|
print(by_branch)
|
||||||
return
|
return
|
||||||
|
else:
|
||||||
|
print(f"deploying {rq.user}/{rq.repo}/{rq.branch} ({rq.commit_hash})")
|
||||||
|
|
||||||
domain, port = itemgetter("domain", "port")(
|
domain, port = itemgetter("domain", "port")(
|
||||||
by_branch[(rq.user, rq.repo, rq.branch)]
|
by_branch[(rq.user, rq.repo, rq.branch)]
|
||||||
@@ -57,7 +59,6 @@ def handle_request(rq: DeployerRequest):
|
|||||||
f"./build.sh > {build_log} 2>&1",
|
f"./build.sh > {build_log} 2>&1",
|
||||||
],
|
],
|
||||||
user="root",
|
user="root",
|
||||||
shell=True,
|
|
||||||
env=dict(
|
env=dict(
|
||||||
os.environ,
|
os.environ,
|
||||||
DOMAIN=domain,
|
DOMAIN=domain,
|
||||||
|
|||||||
Reference in New Issue
Block a user