From 103d362b6a76f1bc05b038e7e0b68eb5cd37dc26 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Fri, 13 Sep 2019 23:25:19 -0400 Subject: failed experiment with running the demo application entirely inside of a docker container --- etc/sv/uwsgi/run | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 etc/sv/uwsgi/run (limited to 'etc/sv/uwsgi') diff --git a/etc/sv/uwsgi/run b/etc/sv/uwsgi/run new file mode 100644 index 0000000..a5762d8 --- /dev/null +++ b/etc/sv/uwsgi/run @@ -0,0 +1,9 @@ +#!/bin/sh +set -e +set -x +sv check postgres 2>&1 >/dev/null || exit 1 +if ! [ -e /setup ] ; then + su -l app -c "/bin/sh /app/setup.sh" + touch /setup +fi +uwsgi --ini /app/uwsgi.ini -- cgit v1.2.3