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
@@ -44,6 +44,16 @@ cd app/web && npm install && npm run build && cd ../..
|
||||
|
||||
The page opens on `http://127.0.0.1:8770`. `claude` (Claude Code, logged in to the subscription) must be on the `PATH` for the Analysis tab.
|
||||
|
||||
### Run as a service
|
||||
|
||||
Without VS Code, the app runs as a systemd user service of WSL (`app/aimsight-app.service`, with `systemd=true` in `/etc/wsl.conf`), started with WSL; the page stays on `http://127.0.0.1:8770`. Once:
|
||||
|
||||
```bash
|
||||
systemctl --user enable --now ~/aimsight-app/app/aimsight-app.service
|
||||
```
|
||||
|
||||
After a change of the code, a restart rebuilds the page and relaunches the server: `systemctl --user restart aimsight-app`. The log: `journalctl --user -u aimsight-app -f`. Stop it before launching the VS Code task **Run app** (same port).
|
||||
|
||||
## Pump the data
|
||||
|
||||
The pumping is in the `~/aimsight-data` repository (`extraction/`, VS Code tasks **pump** and **pump a range**); user guide `~/aimsight-data/extraction/README.md`.
|
||||
|
||||
Reference in new issue
Block a user