fix: adjusted the service file

This commit is contained in:
Kerod-Fresenbet-Gebremedhin2660 2026-01-30 18:14:45 +03:00
parent 25f1a76803
commit 3892d7c4b5
2 changed files with 8 additions and 5 deletions

View File

@ -3,6 +3,9 @@
"module": "index.ts", "module": "index.ts",
"type": "module", "type": "module",
"private": true, "private": true,
"scripts": {
"build": "bun build index.ts --outdir yimaru_admin --target bun"
},
"devDependencies": { "devDependencies": {
"@types/bun": "latest" "@types/bun": "latest"
}, },

View File

@ -6,11 +6,11 @@ After=network.target
Type=simple Type=simple
User=yimaru User=yimaru
Group=yimaru Group=yimaru
WorkingDirectory=/home/yimaru/yimaru_services/yimaru_cicd WorkingDirectory=/home/yimaru/Yimaru-CICD
Environment="NODE_ENV=production" 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 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 Restart=always
RestartSec=10 RestartSec=10
StandardOutput=journal StandardOutput=journal
@ -22,7 +22,7 @@ NoNewPrivileges=true
PrivateTmp=true PrivateTmp=true
ProtectSystem=strict ProtectSystem=strict
ProtectHome=read-only 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 # Resource limits
LimitNOFILE=65536 LimitNOFILE=65536