Updated
This commit is contained in:
18
crm-backend.service
Normal file
18
crm-backend.service
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=CRM Backend Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/opt/crm/backend
|
||||||
|
EnvironmentFile=/opt/crm/backend/.env
|
||||||
|
ExecStart=/usr/bin/node /opt/crm/backend/dist/main
|
||||||
|
Restart=always
|
||||||
|
RestartSec=5
|
||||||
|
StandardOutput=journal
|
||||||
|
StandardError=journal
|
||||||
|
MemoryLimit=5G
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
18
crm-frontend.service
Normal file
18
crm-frontend.service
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=CRM Frontend Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/opt/crm/frontend
|
||||||
|
EnvironmentFile=/opt/crm/frontend/.env
|
||||||
|
ExecStart=/opt/crm/frontend/node_modules/.bin/vite
|
||||||
|
Restart=always
|
||||||
|
RestartSec=5
|
||||||
|
StandardOutput=journal
|
||||||
|
StandardError=journal
|
||||||
|
MemoryLimit=5G
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user