Recommended/Optional Setup
Variable | Description | Default |
---|---|---|
JIRA_ACCOUNT_ID | Jira Account ID associated with submitted worklogs | |
TEMPO_API_TOKEN | API Token for Tempo API | |
JSON_FILE | Location of persistent state json file (preserve restarts) | |
TRACKER_PORT | Port the web server will run on (optional) | 8080 |
Build with cargo build --release
and put in PATH e.g. ~/bin
Systemd user service in ~/.config/systemd/user
[Service]
ExecStart=%h/bin/jira_tracker
[Install]
WantedBy=default.target
With systemctl --user edit jira-tracker.service
.
Content
[Service]
Environment="JIRA_ACCOUNT_ID=<...>"
Environment="TEMPO_API_TOKEN=<...>"
Environment="JSON_FILE=~/.local/share/jira-tracker/file.json"
Start/Restart/Stop
systemctl --user start jira-tracker
systemctl --user restart jira-tracker
systemctl --user stop jira-tracker
Have a look in src/web.rs
None