Add deployment scripts and preserve uploads folder

- Add scripts/deploy.sh for safe deployment with uploads preservation
- Add scripts/cleanup_orphan_uploads.php to remove orphaned files
- Add .gitkeep to uploads folder
- Update .gitignore to exclude uploaded files but keep folder structure

The deploy script now:
- Backs up and restores .env file
- Backs up and restores uploads folder contents
- Runs database migrations automatically

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-20 15:27:05 -05:00
parent bc6a5cecf8
commit 591fad52cc
4 changed files with 217 additions and 1 deletions

0
uploads/.gitkeep Normal file
View File