From fc63fb2a87f3d2dcc406056a4238bff36bd1c353 Mon Sep 17 00:00:00 2001 From: Kerod-Fresenbet-Gebremedhin2660 Date: Fri, 30 Jan 2026 18:14:45 +0300 Subject: [PATCH] fix: adjusted the service file --- package.json | 5 ++++- yimaru-cd.service | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index d055232..208f7f3 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,9 @@ "module": "index.ts", "type": "module", "private": true, + "scripts": { + "build": "bun build index.ts --outdir yimaru_admin --target bun" + }, "devDependencies": { "@types/bun": "latest" }, @@ -12,4 +15,4 @@ "dependencies": { "hono": "^4.11.7" } -} +} \ No newline at end of file diff --git a/yimaru-cd.service b/yimaru-cd.service index 0065744..b9c9c5e 100644 --- a/yimaru-cd.service +++ b/yimaru-cd.service @@ -6,9 +6,9 @@ After=network.target Type=simple User=yimaru Group=yimaru -WorkingDirectory=/home/yimaru/yimaru_services/yimaru_cicd +WorkingDirectory=/home/yimaru/Yimaru-CICD Environment="NODE_ENV=production" -Environment="PATH=/home/yimaru/.bun/bin:/home/yimaru/.nvm/versions/node/v20/bin:/home/yimaru/.local/bin:/usr/local/bin:/usr/bin:/bin" +Environment="PATH=/home/yimaru/.bun/bin:/home/yimaru/.local/bin:/usr/local/bin:/usr/bin:/bin" EnvironmentFile=/home/yimaru/yimaru_services/yimaru_cicd/.env ExecStart=/home/yimaru/.bun/bin/bun dist/index.js Restart=always @@ -22,7 +22,7 @@ NoNewPrivileges=true PrivateTmp=true ProtectSystem=strict ProtectHome=read-only -ReadWritePaths=/home/yimaru/yimaru_services/yimaru_cicd /home/yimaru/.npm /var/www/html +ReadWritePaths=/home/yimaru/Yimaru-CICD /home/yimaru/.npm /var/www/html # Resource limits LimitNOFILE=65536