Full cleanup and fresh container start
This commit is contained in:
@@ -57,7 +57,10 @@ ssh $SERVER_USER@$SERVER_IP << EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f "docker-compose.yml" ]; then
|
if [ -f "docker-compose.yml" ]; then
|
||||||
echo "🏗️ Rebuilding production containers using \$DOCKER_CMD..."
|
echo "🧹 Cleaning up old containers and orphans..."
|
||||||
|
\$DOCKER_CMD down --remove-orphans || true
|
||||||
|
|
||||||
|
echo "🏗️ Rebuilding and starting production containers using \$DOCKER_CMD..."
|
||||||
\$DOCKER_CMD up -d --build
|
\$DOCKER_CMD up -d --build
|
||||||
else
|
else
|
||||||
echo "❌ Error: docker-compose.yml not found!"
|
echo "❌ Error: docker-compose.yml not found!"
|
||||||
|
|||||||
Reference in New Issue
Block a user