yardlight/run.sh

15 lines
199 B
Bash
Raw Permalink Normal View History

2021-02-18 07:39:38 +00:00
#!/bin/sh
gunicorn --bind 0.0.0.0:80 weblight:app
# if argument(s) given - execute argument(s) in container. Otherwise loop.
if [ "$#" -gt 0 ]; then
exec $@
else
while :;
do
sleep 1
done
fi