This commit is contained in:
2025-07-30 22:08:51 -04:00
parent 14e7d578bb
commit 6227cfc8e4
2 changed files with 6 additions and 8 deletions

View File

@@ -5,7 +5,7 @@ cd $DOMAIN_DIR
service_file=$DOMAIN.service
echo "
[Unit]
Description=Deployment of $DOMAIN (from $REPO/$BRANCH)
Description=Deployment of $DOMAIN (on port $PORT, from $REPO/$BRANCH:$COMMIT_HASH)
After=network.target
[Service]
@@ -22,18 +22,16 @@ StandardError=file:$LOGS_DIR/start.log
WantedBy=multi-user.target
" > $service_file
echo "
SHELL := /bin/bash
echo -e "SHELL := /bin/bash
status:
systemctl status deployer-$DOMAIN
\tsystemctl status deployer-$DOMAIN
logs:
journalctl -u deployer-$DOMAIN
\tjournalctl -u deployer-$DOMAIN
stop:
systemctl stop deployer-$DOMAIN
\tsystemctl stop deployer-$DOMAIN
" > Makefile
# create a folder to put the source code

View File

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