Skip to content

Commit

Permalink
container: output foliadocserve log to stdout instead of stderr so do…
Browse files Browse the repository at this point in the history
…cker logs catches it #179
  • Loading branch information
proycon committed Feb 21, 2023
1 parent e452ca3 commit 3b14b81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runit.d/foliadocserve.run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ echo "Starting foliadocserve..." >&2
mkdir -p "${FLAT_DOCROOT:-/data/flat.docroot}"
chown ${UWSGI_UID:-100}:${UWSGI_GID:-100} "${FLAT_DOCROOT:-/data/flat.docroot}"
chmod g+ws "${FLAT_DOCROOT:-/data/flat.docroot}"
#set very permissive stderr
#set very permissive stdout/stderr
chmod a+rwx /proc/self/fd/1
chmod a+rwx /proc/self/fd/2
sudo -u nginx foliadocserve -d ${FLAT_DOCROOT:-/data/flat.docroot} --log /dev/stderr --git --gitshare false --expirationtime 120 -p 8080
sudo -u nginx foliadocserve -d ${FLAT_DOCROOT:-/data/flat.docroot} --log ${FOLIADOCSERVE_LOG:-/dev/stdout} --git --gitshare false --expirationtime 120 -p 8080

0 comments on commit 3b14b81

Please sign in to comment.