mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-01-01 02:39:32 -06:00
20 lines
373 B
Bash
20 lines
373 B
Bash
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o pipefail
|
|
set -o nounset
|
|
|
|
# Set INTERNAL_PORT with default value of 8000
|
|
INTERNAL_PORT=${INTERNAL_PORT:-8000}
|
|
|
|
rm -f /tmp/migrations_complete
|
|
|
|
python manage.py migrate
|
|
|
|
# Create flag file to signal migrations are complete
|
|
touch /tmp/migrations_complete
|
|
|
|
python manage.py setup_users
|
|
|
|
exec python manage.py runserver 0.0.0.0:$INTERNAL_PORT
|