0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 09:14:46 +01:00
posthog/bin/docker-worker

15 lines
249 B
Plaintext
Raw 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 $?