feat: enhance Erugo theme to responsive full-screen cyber glassmorphism template
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/env bash
|
||||
# deploy.sh - Deploy Erugo Views & Themes
|
||||
# Domain: upload.free-warez.win
|
||||
# Target Host: free-warez.win -> /opt/containers/erugo/views
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
TARGET_HOST="free-warez.win"
|
||||
TARGET_DIR="/opt/containers/erugo/views"
|
||||
LOCAL_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
echo "🚀 Deploying Erugo Views"
|
||||
echo " Target: $TARGET_HOST:$TARGET_DIR"
|
||||
echo "==============================================="
|
||||
|
||||
# 1. Check SSH connection
|
||||
echo "📡 Checking SSH connection to $TARGET_HOST..."
|
||||
if ! ssh -q -o BatchMode=yes -o ConnectTimeout=5 "$TARGET_HOST" exit; then
|
||||
echo "❌ Cannot connect to $TARGET_HOST via SSH."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# 2. Sync Views
|
||||
echo "🔄 Syncing blade templates & views..."
|
||||
rsync -avz --delete "$LOCAL_DIR/views/" "$TARGET_HOST:$TARGET_DIR/"
|
||||
|
||||
# 3. Restart container to flush template caches
|
||||
echo "🔄 Restarting Erugo container..."
|
||||
ssh "$TARGET_HOST" "docker restart erugo"
|
||||
|
||||
echo "✅ Erugo updated!"
|
||||
echo "✨ Deployment complete!"
|
||||
Reference in New Issue
Block a user