Files
aimsight-app/app/aimsight-app.service
T

18 lines
795 B
Desktop File

# The app as a systemd user service (WSL), without VS Code: README.md, "Run as a service".
[Unit]
Description=AIMsight diagnostic app (http://127.0.0.1:8770)
[Service]
WorkingDirectory=%h/aimsight-app
# claude (Claude Code, subscription) is in ~/.local/bin, which a service does not get from the shell
Environment=PATH=%h/.local/bin:/usr/local/bin:/usr/bin:/bin
# a restart rebuilds the page, so a change of the code needs only: systemctl --user restart aimsight-app
# SUPABASE_CONVERSATIONS_URL / _KEY for the Suggestions page (aimsight-app/.env, outside git; optional)
EnvironmentFile=-%h/aimsight-app/.env
ExecStartPre=/bin/sh -c 'cd app/web && npm run build'
ExecStart=%h/aimsight-app/.venv/bin/python app/server/server.py --no-browser
Restart=on-failure
[Install]
WantedBy=default.target