ectomobile/entrypoint.sh
2021-07-19 19:02:26 -03:00

12 lines
277 B
Bash

#!/bin/sh
set -e
case $1 in
start)
su app -c "cd /srv/http && foreman start migrate"
daemonize -c /srv/http -u app /usr/bin/foreman start ectomobile
;;
stop) cat /srv/http/tmp/pids/server.pid | xargs kill ;;
blazer*) cd /srv/http && foreman start $1 ;;
esac