sutty/entrypoint.sh

11 lines
294 B
Bash

#!/bin/sh
set -e
case $1 in
sutty)
su app -c "cd /srv/http && foreman start migrate"
daemonize -c /srv/http -u app /usr/bin/foreman start sutty
;;
prometheus) daemonize -c /srv/http -p /tmp/prometheus.pid -l /tmp/prometheus.pid -u app /usr/bin/foreman start prometheus ;;
esac