mirror of
https://github.com/boostorg/website-v2.git
synced 2026-01-19 04:42:17 +00:00
This includes running containers for mailman-core and mailman-web, both connecting to the same database used by the boost web site. The branch proposes a minor refactoring for the shared usage of the compose-start.sh script, allowing both the boost web server and the mailman-web server to wait for the db, run migrations, collect assets and run the django devserver.
13 lines
490 B
Bash
Executable File
13 lines
490 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# This script is used to start our Django WSGI process (gunicorn in this case)
|
|
# for use with docker-compose. In deployed or production scenarios you would
|
|
# not necessarily use this exact setup.
|
|
#
|
|
$DOCKER_DIR/wait-for-it.sh -h db -p $PGPORT -t 20 -- $PYTHON manage.py migrate --noinput
|
|
|
|
$PYTHON manage.py collectstatic --noinput
|
|
|
|
# gunicorn -c gunicorn.conf.py --log-level INFO --reload -b 0.0.0.0:$WEB_PORT config.wsgi
|
|
$PYTHON manage.py runserver 0.0.0.0:$WEB_PORT
|