Full rewrite of METRO HMG for TKB tunnel department: - People-based grid (18 TKB + 5 IT), year-long calendar - Color-coded shift values (4/6/8/12/A/B/D/N/U/O) - Drag-and-drop cells, multi-cell selection (click/ctrl/shift/drag) - Right-click context menu with color palette - Tunnel closure + Metro + D8 info rows (toggleable) - Czech holidays highlighted with names - PDF export (2-page A4 landscape, DejaVu font for Czech chars) - Improvement proposals system - Sticky headers (vertical + horizontal scroll) - Cell value filter toggles in legend Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28 lines
649 B
Bash
Executable File
28 lines
649 B
Bash
Executable File
#!/bin/bash
|
|
# Deploy METRO HMG app to copelk
|
|
set -e
|
|
|
|
REMOTE="copelk"
|
|
REMOTE_DIR="~/Prace/METRO/web"
|
|
|
|
echo "Building..."
|
|
cd /home/klas/Prace/METRO/web
|
|
npx vite build
|
|
|
|
echo "Syncing to $REMOTE..."
|
|
rsync -avz --delete \
|
|
--exclude='node_modules' \
|
|
--exclude='.git' \
|
|
--exclude='saved_schedule.json' \
|
|
--exclude='schedules' \
|
|
--exclude='uploads' \
|
|
/home/klas/Prace/METRO/web/ $REMOTE:$REMOTE_DIR/
|
|
|
|
echo "Installing deps on remote..."
|
|
ssh $REMOTE "cd $REMOTE_DIR && npm install --production --silent"
|
|
|
|
echo "Restarting service on remote..."
|
|
ssh $REMOTE "cd $REMOTE_DIR && pm2 restart metro-hmg"
|
|
|
|
echo "Done! App running at http://copelk:3080"
|