From df04b1ba7e724275d3b9c649eb6596e54047192d Mon Sep 17 00:00:00 2001 From: thomasabishop Date: Wed, 15 Oct 2025 15:49:37 +0100 Subject: [PATCH] fix: systemd unit - add missing working directory - use npm binary as exec --- systemd/eolas-api.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/systemd/eolas-api.service b/systemd/eolas-api.service index 02185e4..371867d 100644 --- a/systemd/eolas-api.service +++ b/systemd/eolas-api.service @@ -5,8 +5,8 @@ After=network.target [Service] Type=simple User=deploy -WorkingDirectory= -ExecStart=/home/deploy/.nvm/versions/node/v24.10.0/bin/node npm run start +WorkingDirectory=/var/www/eolas-api +ExecStart=/home/deploy/.nvm/versions/node/v24.10.0/bin/npm run start Restart=on-failure [Install]