1
1
Files
financeplanner/entrypoint.sh

15 lines
402 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ "$DJANGO_PRODUCTION_MODE" == "true" ]; then
echo "starting production server ..."
./wait-for-it.sh --host=${DB_HOST} --port=${DB_PORT} --strict --timeout=20 -- \
uwsgi --ini uwsgi.ini
else
echo "starting development server ..."
./wait-for-it.sh --host=${DB_HOST} --port=${DB_PORT} --strict --timeout=20 -- \
python manage.py runserver 0.0.0.0:8000
fi