2022-06-08 13:19:59 +02:00
|
|
|
{
|
|
|
|
// 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",
|
2023-06-19 13:15:17 +02:00
|
|
|
"KAFKA_HOSTS": "localhost:9092",
|
2022-06-08 13:19:59 +02:00
|
|
|
"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",
|
2023-05-25 15:41:04 +02:00
|
|
|
"OBJECT_STORAGE_ENABLED": "True",
|
|
|
|
"SESSION_RECORDING_BLOB_PROCESSING_TEAMS": "all"
|
2022-06-08 13:19:59 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Frontend",
|
|
|
|
"command": "npm start",
|
|
|
|
"request": "launch",
|
|
|
|
"type": "node-terminal",
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
},
|
|
|
|
{
|
2022-08-25 18:30:52 +02:00
|
|
|
"name": "Backend",
|
2022-06-08 13:19:59 +02:00
|
|
|
"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",
|
2023-06-19 13:15:17 +02:00
|
|
|
"KAFKA_HOSTS": "localhost",
|
2022-06-08 13:19:59 +02:00
|
|
|
"DATABASE_URL": "postgres://posthog:posthog@localhost:5432/posthog",
|
|
|
|
"SKIP_SERVICE_VERSION_REQUIREMENTS": "1",
|
2023-06-15 15:13:28 +02:00
|
|
|
"PRINT_SQL": "1",
|
2023-06-19 13:15:17 +02:00
|
|
|
"REPLAY_BLOB_INGESTION_TRAFFIC_RATIO": "1.0"
|
2022-06-08 13:19:59 +02:00
|
|
|
},
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
"python": "${workspaceFolder}/env/bin/python",
|
|
|
|
"cwd": "${workspaceFolder}"
|
|
|
|
}
|
2022-08-25 18:30:52 +02:00
|
|
|
],
|
|
|
|
"compounds": [
|
|
|
|
{
|
|
|
|
"name": "PostHog",
|
|
|
|
"configurations": ["Backend", "Celery", "Frontend", "Plugin Server"],
|
|
|
|
"stopAll": true
|
|
|
|
}
|
2022-06-08 13:19:59 +02:00
|
|
|
]
|
|
|
|
}
|