ectomobile/entrypoint.sh

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