fix: adjusted the service file
This commit is contained in:
parent
25f1a76803
commit
fc63fb2a87
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@ 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 dist/index.js
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user