Files
ThaMunsta ab17324f85
Build Images and Deploy / Update-PROD-Stack (push) Successful in 34s
feat: add deployment workflows for web, Android, Docker, macOS, and Linux
2026-03-30 22:00:36 -04:00

52 lines
1.4 KiB
Bash

#!/bin/bash
# Dibby Wemo Manager - Web Deployment Script
# This script builds and deploys the web version using Docker Compose
set -e
echo "🚀 Deploying Dibby Wemo Manager (Web Version)..."
# Check if Docker is running
if ! docker info > /dev/null 2>&1; then
echo "❌ Docker is not running. Please start Docker first."
exit 1
fi
# Build the Docker image (if needed)
echo "📦 Building Docker image..."
docker build -t reg.dev.nervesocket.com/dibbly:latest .
# Stop existing container if running
echo "🛑 Stopping existing container..."
docker-compose -f web-compose.yml down || true
# Start the service
echo "🔄 Starting web service..."
docker-compose -f web-compose.yml up -d
# Wait for service to be ready
echo "⏳ Waiting for service to be ready..."
sleep 10
# Check if service is running
if docker-compose -f web-compose.yml ps | grep -q "Up"; then
echo "✅ Dibby Wemo Manager is now running!"
echo ""
echo "🌐 Access the web interface at:"
echo " http://localhost:3456"
echo ""
echo "📱 Mobile-friendly URL:"
echo " http://$(hostname -I | awk '{print $1}'):3456"
echo ""
echo "📊 View logs:"
echo " docker-compose -f web-compose.yml logs -f"
echo ""
echo "🛑 Stop service:"
echo " docker-compose -f web-compose.yml down"
else
echo "❌ Failed to start the service. Check logs:"
docker-compose -f web-compose.yml logs
exit 1
fi