You've already forked pedini.dev
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:
@@ -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")
|
||||
rm -rf ${DATAPATH}/{*,.*}
|
||||
tar xf /tmp/httpdocs.tgz -C ${DATAPATH}
|
||||
docker compose restart
|
||||
rm -f /tmp/httpdocs.tgz
|
||||
EOF
|
||||
rm -f httpdocs.tgz
|
||||
|
||||
Reference in New Issue
Block a user