fix(deploy): remove docker compose restart from deployment script

Removes the 'docker compose restart' command from the deployment script as it was causing unnecessary service interruptions during deployment. The tar extraction and cleanup steps are sufficient for updating the application files without requiring a full container restart.
This commit is contained in:
2026-02-01 18:12:28 +01:00
parent 126bd66ddb
commit d0189c57a5

View File

@@ -36,7 +36,6 @@ ssh -o StrictHostKeyChecking=no ${SSH_PRIVATE_KEY} ${SSH_USERNAME}${DEPLOYMENT_H
DATAPATH=$(cat .env | grep "NGINX_DATA" | sed "s/NGINX_DATA=//g") DATAPATH=$(cat .env | grep "NGINX_DATA" | sed "s/NGINX_DATA=//g")
rm -rf ${DATAPATH}/{*,.*} rm -rf ${DATAPATH}/{*,.*}
tar xf /tmp/httpdocs.tgz -C ${DATAPATH} tar xf /tmp/httpdocs.tgz -C ${DATAPATH}
docker compose restart
rm -f /tmp/httpdocs.tgz rm -f /tmp/httpdocs.tgz
EOF EOF
rm -f httpdocs.tgz rm -f httpdocs.tgz