Make launch.json frontend path portable ($PWD/frontend)

The crm-preview launch config hardcoded an absolute machine path for
CRM_FRONTEND_DIR, breaking the preview on any other clone path. Derive
it from $PWD at launch time so the repo is self-contained. Clears the
sole blocker from the portability-standard audit.
This commit is contained in:
Keysat
2026-06-12 19:19:31 -05:00
parent 6816d4a4f0
commit a74a540295
+1 -1
View File
@@ -4,7 +4,7 @@
{ {
"name": "crm-preview", "name": "crm-preview",
"runtimeExecutable": "bash", "runtimeExecutable": "bash",
"runtimeArgs": ["-c", "CRM_DB_PATH=/tmp/crm_preview.db CRM_DATA_DIR=/tmp/crm_preview_data CRM_FRONTEND_DIR=/Users/macpro/Projects/CRM/frontend CRM_PORT=8765 CRM_ENV=development exec python3 backend/server.py"], "runtimeArgs": ["-c", "CRM_DB_PATH=/tmp/crm_preview.db CRM_DATA_DIR=/tmp/crm_preview_data CRM_FRONTEND_DIR=$PWD/frontend CRM_PORT=8765 CRM_ENV=development exec python3 backend/server.py"],
"port": 8765 "port": 8765
} }
] ]