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

View File

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