fix: adjusted the service file
This commit is contained in:
parent
25f1a76803
commit
fc63fb2a87
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user