21 lines
428 B
Bash
Executable File
21 lines
428 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
echo "📦 Starting Django deploy script..."
|
|
|
|
echo "🔧 Running migrations..."
|
|
django-admin migrate --noinput
|
|
|
|
echo "📁 Collecting static files..."
|
|
django-admin collectstatic --noinput
|
|
|
|
echo "📁 Manually copying static files..."
|
|
cp -v /app/static/* /var/www/static/
|
|
|
|
echo "📁 Manually copying template files..."
|
|
cp -rv /app/templates/ /var/www/templates/
|
|
|
|
echo "🚀 Launching Flightslot..."
|
|
exec "$@"
|