Reset to HoopScout v2 runtime foundation and simplified topology
This commit is contained in:
@ -8,6 +8,10 @@ done
|
||||
|
||||
echo "PostgreSQL is available."
|
||||
|
||||
mkdir -p "${SNAPSHOT_INCOMING_DIR:-/app/snapshots/incoming}" \
|
||||
"${SNAPSHOT_ARCHIVE_DIR:-/app/snapshots/archive}" \
|
||||
"${SNAPSHOT_FAILED_DIR:-/app/snapshots/failed}"
|
||||
|
||||
if [ "${DJANGO_SETTINGS_MODULE:-}" = "config.settings.production" ] && [ "$1" = "gunicorn" ]; then
|
||||
echo "Running Django deployment checks..."
|
||||
python manage.py check --deploy --fail-level WARNING
|
||||
@ -19,15 +23,6 @@ if [ "${AUTO_APPLY_MIGRATIONS:-0}" = "1" ] && [ "$1" = "gunicorn" ]; then
|
||||
fi
|
||||
|
||||
if [ "${AUTO_COLLECTSTATIC:-0}" = "1" ] && [ "$1" = "gunicorn" ]; then
|
||||
if [ "${AUTO_BUILD_TAILWIND:-1}" = "1" ] && [ -f /app/package.json ]; then
|
||||
if [ -x /app/node_modules/.bin/tailwindcss ]; then
|
||||
echo "Building Tailwind assets..."
|
||||
npm run build
|
||||
else
|
||||
echo "Tailwind dependencies missing; skipping AUTO_BUILD_TAILWIND."
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Collecting static files..."
|
||||
python manage.py collectstatic --noinput
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user