mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-22 08:40:03 +01:00
14f12846ed
* ignore copying frontend/dist folder - otherwise whatever you build in docker will get overridden by local build artifacts if any exist in frontend/dist * support configuring redis with POSTHOG_REDIS_HOST and other vars in addition to REDIS_URL * remove "the next version" in worker requirement modal * split beat and celery scripts * remove chart folder * celery heartbeat every 10sec, reduce distributed beat lock hold time * remove dockerfile local link * add localhost redis url for tests
20 lines
945 B
Bash
Executable File
20 lines
945 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://docs.posthog.com/#/upgrading-posthog?id=upgrading-from-before-1011"
|
|
echo "⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️⚠️"
|
|
else
|
|
./bin/docker-worker-beat &
|
|
./bin/docker-worker-celery
|
|
fi
|