improved compose and entry point files
This commit is contained in:
@@ -16,5 +16,12 @@ cp -v /app/static/* /var/www/static/
|
||||
echo "📁 Manually copying template files..."
|
||||
cp -rv /app/templates/ /var/www/templates/
|
||||
|
||||
echo "👁️ Creating superuser..."
|
||||
if django-admin createsuperuser --noinput --email ${DJANGO_SUPERUSER_EMAIL} --username ${DJANGO_SUPERUSER_USERNAME}; then
|
||||
echo "👁️ Superuser ${DJANGO_SUPERUSER_USERNAME} already created ..."
|
||||
else
|
||||
echo "👁️ Superuser ${DJANGO_SUPERUSER_USERNAME} created successfully ..."
|
||||
fi
|
||||
|
||||
echo "🚀 Launching Flightslot..."
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user