.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
POSTHOG_PROJECT_API_KEY
secret
Your project API key (found on the /setup page in PostHog)
POSTHOG_SECRET_KEY
secret
Your secret API key (for local evaluation and other advanced features)
POSTHOG_HOST
PostHog host URL (remove this line if using posthog.com)
brew install flyctl && fly launch --from https://github.com/posthog/posthog-python
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/posthog/posthog-python
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/posthog/posthog-python