Skip to content

Commit 2f287d0

Browse files
feat: checkout production branch and reset it hard
1 parent 138d1e4 commit 2f287d0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

scripts/deploy.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ fi
1818

1919
echo "🚀 Deploying infrastructure..."
2020

21-
# Default network
2221
echo "🌐 Creating default network..."
2322
docker network inspect proxy >/dev/null 2>&1 || docker network create \
2423
--driver=bridge \
@@ -27,11 +26,13 @@ fi
2726
proxy
2827

2928
echo "⬇️ Pulling latest changes from Git..."
30-
git pull origin production
29+
git fetch origin
30+
git checkout production
31+
git reset --hard origin/production
3132

3233
echo "🛠 (Re)create and start containers..."
3334
docker compose pull
3435
docker compose up -d
35-
36+
3637
echo "✅ Deployment completed!"
3738
} 2>&1 | tee "$LOG_FILE"

0 commit comments

Comments
 (0)