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:
+1
-1
@@ -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
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user