Deploy application in container using compose to bring up db
This commit is contained in:
20
cntmanage/docker/entrypoint.sh
Executable file
20
cntmanage/docker/entrypoint.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/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 "$@"
|
||||
Reference in New Issue
Block a user