This commit is contained in:
2025-07-30 22:02:59 -04:00
parent 5d71c964b7
commit 14e7d578bb
3 changed files with 5 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ def handle_request(rq: DeployerRequest):
deployment_id = str(int(time()))
domain_dir = f"{DEPLOYERDIR}/{domain}"
logs_dir = f"{domain_dir}/{deployment_id}"
logs_dir = f"{domain_dir}/logs/{deployment_id}"
os.makedirs(logs_dir, exist_ok=True)
build_log = f"{logs_dir}/build.log"

View File

@@ -10,7 +10,8 @@ After=network.target
[Service]
Type=simple
ExecStart='PORT=$PORT make start'
Environment="PORT=$PORT"
ExecStart=make start
User=drm
WorkingDirectory=$DOMAIN_DIR/src
Restart=on-failure
@@ -30,7 +31,7 @@ status:
logs:
journalctl -u deployer-$DOMAIN
stop
stop:
systemctl stop deployer-$DOMAIN
" > Makefile

View File

@@ -5,6 +5,6 @@ handle_request(
user="drm",
repo="deployer",
branch="main",
commit_hash="93954f3190f7bbcbf29df2f68ebc400acb47cda9",
commit_hash="5d71c964b77ba2b658dfa96169096fef13c64aeb",
)
)