The app as a systemd user service, reloaded by a VS Code task
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8fa555f43b
commit
0a862758fb
3 files changed
+32
No files matched your search
Vendored
+7
@@ -8,6 +8,13 @@
|
||||
"command": "{ [ -d .venv ] || { python3 -m venv .venv && .venv/bin/pip install -q -r app/requirements.txt; }; } && (cd app/web && { [ -d node_modules ] || npm install; } && npm run build) && .venv/bin/python app/server/server.py",
|
||||
"isBackground": true,
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Reload the service",
|
||||
"detail": "After a change of the code: rebuilds the page and relaunches the systemd service aimsight-app on http://127.0.0.1:8770 (README.md, Run as a service)",
|
||||
"type": "shell",
|
||||
"command": "systemctl --user restart aimsight-app && systemctl --user is-active aimsight-app && echo http://127.0.0.1:8770 || { journalctl --user -u aimsight-app -n 30 --no-pager; exit 1; }",
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user