mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
21 lines
1018 B
Bash
Executable File
21 lines
1018 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if [ -z "$REDIS_URL$POSTHOG_REDIS_HOST" ]
|
|
then
|
|
echo "⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️"
|
|
echo "️⚠️ 🚨🚨🚨 PostHog warning! 🚨🚨🚨"
|
|
echo "⚠️"
|
|
echo "️⚠️ The environment variable REDIS_URL or POSTHOG_REDIS_HOST 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://posthog.com/docs/deployment/upgrading-posthog#upgrading-from-before-1011"
|
|
echo "⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️"
|
|
else
|
|
rm celerybeat.pid || echo "celerybeat.pid not found, proceeding"
|
|
./bin/docker-worker-beat &
|
|
./bin/docker-worker-celery
|
|
fi
|