Skip to content

Commit f5e42b9

Browse files
committed
chore: restart nginx during deployment to prevent stale DNS caching
1 parent da0981f commit f5e42b9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/deploy-production.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ deploy_local() {
4242
echo ">>> Deploying container stack..."
4343
docker compose -f docker-compose.production.yml up -d --remove-orphans
4444

45+
echo ">>> Restarting Nginx to reload DNS and clear IP cache..."
46+
docker compose -f docker-compose.production.yml restart nginx
47+
4548
echo ">>> Running database migrations..."
4649
# Run prisma migrations on the auth-service container
4750
docker compose -f docker-compose.production.yml exec -T auth-service npx prisma db push --accept-data-loss || true

0 commit comments

Comments
 (0)