- docker-compose.yml for VPS deployment - deploy.sh for auto-updates - Fixed package.json name Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
17 lines
287 B
Bash
17 lines
287 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
PROJECT_DIR="/opt/lab-leopost"
|
|
cd "$PROJECT_DIR"
|
|
|
|
echo "[$(date)] Auto-deploy triggered" >> deploy.log
|
|
|
|
# Pull latest
|
|
git pull origin main
|
|
|
|
# Rebuild e restart
|
|
docker compose build --no-cache
|
|
docker compose up -d
|
|
|
|
echo "[$(date)] Auto-deploy completed" >> deploy.log
|