2020-04-07 13:55:20 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2020-04-13 17:22:06 +02:00
|
|
|
if [ -z "$REDIS_URL$POSTHOG_REDIS_HOST" ]
|
2020-04-08 14:52:29 +02:00
|
|
|
then
|
|
|
|
echo "⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️"
|
|
|
|
echo "️⚠️ 🚨🚨🚨 PostHog warning! 🚨🚨🚨"
|
|
|
|
echo "⚠️"
|
2020-04-13 17:22:06 +02:00
|
|
|
echo "️⚠️ The environment variable REDIS_URL or POSTHOG_REDIS_HOST is not configured!"
|
2020-04-08 14:52:29 +02:00
|
|
|
echo "⚠️ Redis will be mandatory in the next versions of PostHog (1.1.0+)."
|
|
|
|
echo "⚠️ Please configure it now to avoid future surprises!"
|
|
|
|
echo "⚠️"
|
|
|
|
echo "⚠️ See here for more information!"
|
2020-05-26 17:20:21 +02:00
|
|
|
echo "⚠️ --> https://posthog.com/docs/deployment/upgrading-posthog#upgrading-from-before-1011"
|
2020-04-08 14:52:29 +02:00
|
|
|
echo "⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️"
|
|
|
|
else
|
2020-04-13 17:22:06 +02:00
|
|
|
./bin/docker-worker-beat &
|
|
|
|
./bin/docker-worker-celery
|
2020-04-08 14:52:29 +02:00
|
|
|
fi
|