chore: remove pastas vazias de uploads e processed de dentro do dental-server (substituidas por volumes externos)
continuous-integration/webhook Deploy em andamento (rx.scoreodonto.com)
continuous-integration/webhook Deploy em andamento (rx.scoreodonto.com)
This commit is contained in:
+16
-3
@@ -10,12 +10,25 @@ echo "========================================================"
|
||||
echo "$LOG_TAG INICIANDO DEPLOY PARA PRODUCAO (VPS 1)"
|
||||
echo "========================================================"
|
||||
|
||||
echo "$LOG_TAG Puxando atualizacoes do Gitea na VPS 1..."
|
||||
echo "$LOG_TAG Atualizando repositório local na VPS 4..."
|
||||
git fetch origin main
|
||||
git reset --hard origin/main
|
||||
|
||||
echo "$LOG_TAG Transferindo arquivos para VPS 1 via rsync..."
|
||||
rsync -avz --delete \
|
||||
--exclude '.git' \
|
||||
--exclude '.env' \
|
||||
--exclude 'node_modules' \
|
||||
--exclude 'uploads' \
|
||||
--exclude 'processed' \
|
||||
--exclude 'data' \
|
||||
${PROD_PATH}/ \
|
||||
${PROD_USER}@${PROD_VPS}:${PROD_PATH}/
|
||||
|
||||
echo "$LOG_TAG Recriando containers na VPS 1..."
|
||||
ssh -o BatchMode=yes -o StrictHostKeyChecking=no ${PROD_USER}@${PROD_VPS} "
|
||||
set -e
|
||||
cd ${PROD_PATH}
|
||||
git pull origin main
|
||||
|
||||
export DOCKER_HOST=unix:///run/user/1000/docker.sock
|
||||
|
||||
echo '${LOG_TAG} Recriando imagem com novos arquivos...'
|
||||
|
||||
Reference in New Issue
Block a user