fully working when deployed

This commit is contained in:
2025-09-28 18:47:31 +01:00
parent 38ee5a8886
commit d4aa460f91
9 changed files with 303 additions and 81 deletions
+1 -11
View File
@@ -28,18 +28,8 @@ if [ -d ".git" ]; then
git pull origin main || echo "⚠️ Git pull failed or not needed"
fi
# Setup database
echo "🛠️ Setting up the database..."
npx tsx scripts/setup-database.ts
# Fix database permissions for container
echo "🔒 Fixing database permissions for container..."
if [ -f "data/sqlite.db" ]; then
chmod 666 data/sqlite.db
fi
chmod 777 data backups logs
# Build and deploy with Docker Compose
echo " Building and starting Docker containers..."
echo "🐳 Building and starting Docker containers..."
# Stop existing containers