mirror of
https://github.com/tanrax/org-social-host
synced 2026-01-07 05:43:33 +01:00
21 lines
508 B
Bash
Executable File
21 lines
508 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
echo "🚀 Starting Org Social Host application..."
|
|
|
|
# Create storage directory if it doesn't exist
|
|
echo "📁 Creating storage directory..."
|
|
mkdir -p /app/storage
|
|
|
|
# Run migrations
|
|
echo "🔄 Running database migrations..."
|
|
python manage.py migrate
|
|
|
|
# Check for any issues
|
|
echo "🔍 Checking Django configuration..."
|
|
python manage.py check
|
|
|
|
# Start Django development server
|
|
echo "🎯 Starting Django development server on 0.0.0.0:8000..."
|
|
exec python manage.py runserver 0.0.0.0:8000
|