mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 18:07:17 +01:00
136 lines
4.7 KiB
JSON
136 lines
4.7 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",
|
|
"program": "${workspaceFolder}/env/bin/celery",
|
|
"console": "integratedTerminal",
|
|
"python": "${workspaceFolder}/env/bin/python",
|
|
"cwd": "${workspaceFolder}",
|
|
"args": [
|
|
"-A",
|
|
"posthog",
|
|
"worker",
|
|
"-B",
|
|
"--scheduler",
|
|
"redbeat.RedBeatScheduler",
|
|
"--without-heartbeat",
|
|
"--without-mingle",
|
|
"--pool=solo",
|
|
"-Ofair",
|
|
"-n",
|
|
"node@%h"
|
|
],
|
|
"envFile": "${workspaceFolder}/bin/celery-queues.env",
|
|
"env": {
|
|
"SKIP_ASYNC_MIGRATIONS_SETUP": "0",
|
|
"DEBUG": "1",
|
|
"BILLING_SERVICE_URL": "https://billing.dev.posthog.dev",
|
|
"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"
|
|
}
|
|
},
|
|
{
|
|
"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",
|
|
"BILLING_SERVICE_URL": "https://billing.dev.posthog.dev",
|
|
"CLOUD_DEPLOYMENT": "dev"
|
|
},
|
|
"console": "integratedTerminal",
|
|
"python": "${workspaceFolder}/env/bin/python",
|
|
"cwd": "${workspaceFolder}"
|
|
},
|
|
{
|
|
"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}"
|
|
},
|
|
{
|
|
"name": "Pytest: Current File",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "pytest",
|
|
"args": ["${file}", "-vvv"],
|
|
"console": "integratedTerminal",
|
|
"justMyCode": true
|
|
},
|
|
{
|
|
"name": "(lldb) Attach",
|
|
"type": "cppdbg",
|
|
"request": "attach",
|
|
"program": "/Users/twixes/.pyenv/versions/3.10.10/envs/posthog-3.10/bin/python",
|
|
"MIMode": "lldb"
|
|
},
|
|
{
|
|
"name": "Python C++ Debugger: Current File",
|
|
"type": "pythoncpp",
|
|
"request": "launch",
|
|
"pythonConfig": "custom",
|
|
"pythonLaunchName": "Pytest: Current File",
|
|
"cppConfig": "custom",
|
|
"cppAttachName": "(lldb) Attach"
|
|
}
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "PostHog",
|
|
"configurations": ["Backend", "Celery", "Frontend", "Plugin Server", "Temporal Worker"],
|
|
"stopAll": true
|
|
}
|
|
]
|
|
}
|