2020-04-07 13:55:20 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2020-04-08 14:52:29 +02:00
|
|
|
if [ -z "$REDIS_URL" ]
|
|
|
|
then
|
|
|
|
echo "⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️"
|
|
|
|
echo "️⚠️ 🚨🚨🚨 PostHog warning! 🚨🚨🚨"
|
|
|
|
echo "⚠️"
|
|
|
|
echo "️⚠️ The environment variable REDIS_URL is not configured!"
|
|
|
|
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!"
|
|
|
|
echo "⚠️ --> https://docs.posthog.com/#/upgrading-posthog?id=upgrading-from-before-1011"
|
|
|
|
echo "⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️"
|
|
|
|
else
|
|
|
|
celery -A posthog beat -S redbeat.RedBeatScheduler &
|
|
|
|
celery -A posthog worker
|
|
|
|
fi
|