mirror of
https://github.com/FuzzyGrim/Yamtrack.git
synced 2026-03-03 02:27:01 +00:00
18 lines
337 B
Bash
18 lines
337 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
python manage.py migrate --noinput
|
|
python manage.py collectstatic --noinput --ignore=*.scss
|
|
|
|
|
|
PUID=${PUID:-911}
|
|
PGID=${PGID:-911}
|
|
|
|
groupmod -o -g "$PGID" abc
|
|
usermod -o -u "$PUID" abc
|
|
chown -R abc:abc db
|
|
chown -R abc:abc assets
|
|
|
|
nginx
|
|
exec gosu abc:abc uwsgi --socket :8000 --master --enable-threads --module base.wsgi |