mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +00:00
They went to files in the container that were never rotated and were lost on each recreate. docker logs is rotated (10 MB x 5) and outlives a restart.
5 lines
325 B
Bash
Executable file
5 lines
325 B
Bash
Executable file
#!/bin/sh
|
|
# `/sbin/setuser www-data` runs the given command as the user `www-data`.
|
|
cd /srv/webvirtcloud || exit
|
|
# gunicorn's own and access log go to the container's output (docker logs)
|
|
exec /sbin/setuser www-data /srv/webvirtcloud/venv/bin/gunicorn webvirtcloud.wsgi:application -c /srv/webvirtcloud/gunicorn.conf.py 2>&1
|