fully working when deployed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user