mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-21 21:49:51 +01:00
8deaf4e8ea
* Swapped to use KAFKA_HOSTS everywhere * Fixed up type of kafka config options and setup separate kafka hosts for blob consumer * allow session recordings to have its own kafka security protocol * remove slash commands from this pr * syntax must be obeyed * Update UI snapshots for `chromium` (2) * Update UI snapshots for `chromium` (2) * fix * Update query snapshots * no empty strings in kafka hosts * fix snapshot * fix test --------- Co-authored-by: Paul D'Ambra <paul@posthog.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
89 lines
3.0 KiB
JSON
89 lines
3.0 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Celery",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "celery",
|
|
"console": "integratedTerminal",
|
|
"python": "${workspaceFolder}/env/bin/python",
|
|
"cwd": "${workspaceFolder}",
|
|
"args": [
|
|
"-A",
|
|
"posthog",
|
|
"worker",
|
|
"-B",
|
|
"--scheduler",
|
|
"redbeat.RedBeatScheduler",
|
|
"--without-heartbeat",
|
|
"--without-gossip",
|
|
"--without-mingle"
|
|
],
|
|
"env": {
|
|
"PYTHONUNBUFFERED": "1",
|
|
"DEBUG": "1",
|
|
"CLICKHOUSE_SECURE": "False",
|
|
"KAFKA_HOSTS": "localhost:9092",
|
|
"DATABASE_URL": "postgres://posthog:posthog@localhost:5432/posthog",
|
|
"WORKER_CONCURRENCY": "2",
|
|
"SKIP_SERVICE_VERSION_REQUIREMENTS": "1"
|
|
}
|
|
},
|
|
{
|
|
"command": "npm run start:dev",
|
|
"name": "Plugin Server",
|
|
"request": "launch",
|
|
"type": "node-terminal",
|
|
"cwd": "${workspaceFolder}/plugin-server",
|
|
"env": {
|
|
"CLICKHOUSE_SECURE": "False",
|
|
"DATABASE_URL": "postgres://posthog:posthog@localhost:5432/posthog",
|
|
"KAFKA_HOSTS": "localhost:9092",
|
|
"WORKER_CONCURRENCY": "2",
|
|
"OBJECT_STORAGE_ENABLED": "True",
|
|
"SESSION_RECORDING_BLOB_PROCESSING_TEAMS": "all"
|
|
}
|
|
},
|
|
{
|
|
"name": "Frontend",
|
|
"command": "npm start",
|
|
"request": "launch",
|
|
"type": "node-terminal",
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"name": "Backend",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${workspaceFolder}/manage.py",
|
|
"args": ["runserver"],
|
|
"django": true,
|
|
"env": {
|
|
"PYTHONUNBUFFERED": "1",
|
|
"DJANGO_SETTINGS_MODULE": "posthog.settings",
|
|
"DEBUG": "1",
|
|
"CLICKHOUSE_SECURE": "False",
|
|
"KAFKA_HOSTS": "localhost",
|
|
"DATABASE_URL": "postgres://posthog:posthog@localhost:5432/posthog",
|
|
"SKIP_SERVICE_VERSION_REQUIREMENTS": "1",
|
|
"PRINT_SQL": "1",
|
|
"REPLAY_BLOB_INGESTION_TRAFFIC_RATIO": "1.0"
|
|
},
|
|
"console": "integratedTerminal",
|
|
"python": "${workspaceFolder}/env/bin/python",
|
|
"cwd": "${workspaceFolder}"
|
|
}
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "PostHog",
|
|
"configurations": ["Backend", "Celery", "Frontend", "Plugin Server"],
|
|
"stopAll": true
|
|
}
|
|
]
|
|
}
|