mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 08:09:18 +02:00
add incremental migration runner to deploy recipe — execute whole SQL files (not semicolon-split), catch 'no such column' for idempotent re-runs, merge into migrate.sh
This commit is contained in:
2
justfile
2
justfile
@@ -70,8 +70,6 @@ deploy:
|
||||
rsync -v scripts/migrate.sh xamxam:/tmp/migrate.sh
|
||||
ssh xamxam "cd /var/www/xamxam && REPO_ROOT=/var/www/xamxam bash /tmp/migrate.sh"
|
||||
ssh xamxam "rm -f /tmp/migrate.sh"
|
||||
# Run incremental migrations
|
||||
ssh xamxam "php /var/www/xamxam/migrations/run.php /var/www/xamxam/storage/xamxam.db"
|
||||
# Deploy nginx configuration
|
||||
@just deploy-nginx
|
||||
# Sync .env separately (excluded above to avoid accidental overwrite on subsequent deploys)
|
||||
|
||||
Reference in New Issue
Block a user