daddy/misc/containers/super-graph/docker-entrypoint.sh

14 lines
281 B
Bash
Raw Permalink Normal View History

2020-06-15 14:58:59 +02:00
#!/bin/sh
set -eo pipefail
if [ ! -f /container-lifecycle/first_run ]; then
waitforit -debug -host $SG_DATABASE_HOST -port 5432
super-graph db:migrate up
super-graph db:seed
mkdir /container-lifecycle
touch /container-lifecycle/first_run
fi
super-graph serv