Skip to content

Commit

Permalink
feat(vscode): add launch config for debugging migrations (#26816)
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr authored Dec 11, 2024
1 parent 3908c7c commit ef77527
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,27 @@
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"runtimeExecutable": "${env:HOME}/.nvm/versions/node/${input:pickVersion}/bin/node"
},
{
"name": "Python Debugger: Django Migrations",
"type": "debugpy",
"request": "launch",
"args": ["migrate", "posthog"],
"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": "http://localhost:8100/",
"CLOUD_DEPLOYMENT": "dev"
},
"autoStartBrowser": false,
"program": "${workspaceFolder}/manage.py"
}
],
"inputs": [
Expand Down

0 comments on commit ef77527

Please sign in to comment.