0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-25 02:49:32 +01:00
posthog/bin/docker-worker

15 lines
249 B
Plaintext
Raw Permalink Normal View History

2020-04-07 13:55:20 +02:00
#!/bin/bash
set -e
./bin/migrate-check
# Stop any background jobs on exit
trap 'kill $(jobs -p)' EXIT
./bin/plugin-server &
./bin/docker-worker-celery --with-scheduler &
# Exit if any processes exit, and exit with it's exit code
wait -n
exit $?