- Removed empty bin/fabric file (not used; package.json bin declaration is correct) - Updated fabric-web.service and fabric-prune.service to use /home/coding/.nix-profile/bin/node instead of /usr/bin/node (NixOS node path) - Created ~/.config/fabric/secrets.env with FABRIC_AUTH_TOKEN - Installed and enabled fabric-web.service and fabric-prune.timer Acceptance verified: - systemctl --user status fabric-web.service shows active (running) - curl http://localhost:3000/api/workers returns valid JSON ([]) Closes: bf-1nah
12 lines
313 B
Desktop File
12 lines
313 B
Desktop File
[Unit]
|
|
Description=FABRIC Log Pruner
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
WorkingDirectory=/home/coding/FABRIC
|
|
ExecStart=/home/coding/.nix-profile/bin/node dist/cli.js prune --source ~/.needle/logs
|
|
Environment=NODE_ENV=production
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=fabric-prune
|