mirror of
https://github.com/taigaio/taiga-back
synced 2025-10-06 00:02:52 +02:00
33 lines
870 B
Bash
33 lines
870 B
Bash
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
# Copyright (c) 2021-present Kaleidos Ventures SL
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
# Execute pending migrations
|
|
echo Executing pending migrations
|
|
python manage.py migrate
|
|
|
|
# Load default templates
|
|
echo Load default templates
|
|
python manage.py loaddata initial_project_templates
|
|
|
|
# Give permission to taiga:taiga after mounting volumes
|
|
echo Give permission to taiga:taiga
|
|
chown -R taiga:taiga /taiga-back
|
|
|
|
# Start Taiga processes
|
|
echo Starting Taiga API...
|
|
exec gosu taiga gunicorn taiga.wsgi:application \
|
|
--name taiga_api \
|
|
--bind 0.0.0.0:8000 \
|
|
--workers 3 \
|
|
--worker-tmp-dir /dev/shm \
|
|
--log-level=info \
|
|
--access-logfile - \
|
|
"$@"
|