From 3892d7c4b57634c81de3306c735e23b215663641 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 | 8 ++++---- 2 files changed, 8 insertions(+), 5 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..a5d1ef0 100644 --- a/yimaru-cd.service +++ b/yimaru-cd.service @@ -6,11 +6,11 @@ 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 +ExecStart=/home/yimaru/.bun/bin/bun yimaru_admin/index.js Restart=always RestartSec=10 StandardOutput=journal @@ -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