|
|
|
|
@ -54,9 +54,11 @@ numprocs=1
|
|
|
|
|
; with docker cache. Thus it is necessary to run collectstatic here for such
|
|
|
|
|
; apps.
|
|
|
|
|
command=%(ENV_HOME)s/wait-for-it.sh db:5432 -t 0 -- bash -ic \
|
|
|
|
|
"/usr/bin/python3 ~/manage.py migrate && \
|
|
|
|
|
"rm -f /tmp/cvat-server/httpd.pid && /usr/bin/python3 ~/manage.py migrate && \
|
|
|
|
|
/usr/bin/python3 ~/manage.py collectstatic --no-input && \
|
|
|
|
|
exec /usr/bin/python3 $HOME/manage.py runmodwsgi --log-to-terminal --port 8080 \
|
|
|
|
|
--limit-request-body 1073741824 --log-level INFO --include-file ~/mod_wsgi.conf \
|
|
|
|
|
%(ENV_DJANGO_MODWSGI_EXTRA_ARGS)s --locale %(ENV_LC_ALL)s"
|
|
|
|
|
%(ENV_DJANGO_MODWSGI_EXTRA_ARGS)s --locale %(ENV_LC_ALL)s \
|
|
|
|
|
--server-root /tmp/cvat-server"
|
|
|
|
|
|
|
|
|
|
environment=SSH_AUTH_SOCK="/tmp/ssh-agent.sock"
|
|
|
|
|
|