From 32a9a17411d0ed333c185d81bf77ecc32bf23e46 Mon Sep 17 00:00:00 2001 From: Parin Porecha Date: Thu, 5 Mar 2026 16:15:16 +0100 Subject: [PATCH 1/2] fix: update default localhost port from 8000 to 8010 --- .env.example | 2 +- example.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 7458ded6..9c9f1091 100644 --- a/.env.example +++ b/.env.example @@ -8,4 +8,4 @@ POSTHOG_PROJECT_API_KEY=phc_your_project_api_key_here POSTHOG_PERSONAL_API_KEY=phx_your_personal_api_key_here # PostHog host URL (remove this line if using posthog.com) -POSTHOG_HOST=http://localhost:8000 +POSTHOG_HOST=http://localhost:8010 diff --git a/example.py b/example.py index fbde49fd..da6e9fdf 100644 --- a/example.py +++ b/example.py @@ -33,7 +33,7 @@ def load_env_file(): # Get configuration project_key = os.getenv("POSTHOG_PROJECT_API_KEY", "") personal_api_key = os.getenv("POSTHOG_PERSONAL_API_KEY", "") -host = os.getenv("POSTHOG_HOST", "http://localhost:8000") +host = os.getenv("POSTHOG_HOST", "http://localhost:8010") # Check if project key is provided (required) if not project_key: From a73e1e187253be22acd5941d9bf3a874aedbc9a9 Mon Sep 17 00:00:00 2001 From: Parin Porecha Date: Thu, 5 Mar 2026 16:24:13 +0100 Subject: [PATCH 2/2] include other example --- examples/remote_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/remote_config.py b/examples/remote_config.py index ec5506fe..1badef9c 100644 --- a/examples/remote_config.py +++ b/examples/remote_config.py @@ -8,7 +8,7 @@ # Initialize PostHog client posthog.api_key = "phc_..." posthog.personal_api_key = "phs_..." # or "phx_..." -posthog.host = "http://localhost:8000" # or "https://us.posthog.com" +posthog.host = "http://localhost:8010" # or "https://us.posthog.com" posthog.debug = True