tweaks
This commit is contained in:
12
deploy.sh
12
deploy.sh
@@ -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
|
||||
|
||||
@@ -5,6 +5,6 @@ handle_request(
|
||||
user="drm",
|
||||
repo="deployer",
|
||||
branch="main",
|
||||
commit_hash="5d71c964b77ba2b658dfa96169096fef13c64aeb",
|
||||
commit_hash="14e7d578bbb69ae08ba2533003f6ad284b325809",
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user