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-07-06 11:37:06 +02:00
|
|
|
"OBJECT_STORAGE_ENABLED": "True"
|
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-07-20 16:41:25 +02:00
|
|
|
"REPLAY_EVENTS_NEW_CONSUMER_RATIO": "1.0"
|
2022-06-08 13:19:59 +02:00
|
|
|
},
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
"python": "${workspaceFolder}/env/bin/python",
|
|
|
|
"cwd": "${workspaceFolder}"
|
2023-08-16 16:06:09 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Temporal Worker",
|
|
|
|
"type": "python",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "${workspaceFolder}/manage.py",
|
|
|
|
"args": ["start_temporal_worker"],
|
|
|
|
"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"
|
|
|
|
},
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
"python": "${workspaceFolder}/env/bin/python",
|
|
|
|
"cwd": "${workspaceFolder}"
|
2022-06-08 13:19:59 +02:00
|
|
|
}
|
2022-08-25 18:30:52 +02:00
|
|
|
],
|
|
|
|
"compounds": [
|
|
|
|
{
|
|
|
|
"name": "PostHog",
|
2023-08-16 16:06:09 +02:00
|
|
|
"configurations": ["Backend", "Celery", "Frontend", "Plugin Server", "Temporal Worker"],
|
2022-08-25 18:30:52 +02:00
|
|
|
"stopAll": true
|
|
|
|
}
|
2022-06-08 13:19:59 +02:00
|
|
|
]
|
|
|
|
}
|