We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 138d1e4 commit 2f287d0Copy full SHA for 2f287d0
1 file changed
scripts/deploy.sh
@@ -18,7 +18,6 @@ fi
18
19
echo "🚀 Deploying infrastructure..."
20
21
- # Default network
22
echo "🌐 Creating default network..."
23
docker network inspect proxy >/dev/null 2>&1 || docker network create \
24
--driver=bridge \
@@ -27,11 +26,13 @@ fi
27
26
proxy
28
29
echo "⬇️ Pulling latest changes from Git..."
30
- git pull origin production
+ git fetch origin
+ git checkout production
31
+ git reset --hard origin/production
32
33
echo "🛠 (Re)create and start containers..."
34
docker compose pull
35
docker compose up -d
-
36
+
37
echo "✅ Deployment completed!"
38
} 2>&1 | tee "$LOG_FILE"
0 commit comments