fix(deploy): point systemd services to correct repo and use pnpm start
- Update WorkingDirectory from /root/Horux to /root/HoruxDespachos - Change ExecStart from pnpm dev to pnpm start (production mode) - Prevents duplicate processes and dev-mode file watching in production
This commit is contained in:
@@ -6,10 +6,10 @@ Wants=postgresql.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/root/Horux/apps/api
|
WorkingDirectory=/root/HoruxDespachos/apps/api
|
||||||
Environment=NODE_ENV=production
|
Environment=NODE_ENV=production
|
||||||
Environment=PATH=/root/.local/share/pnpm:/usr/local/bin:/usr/bin:/bin
|
Environment=PATH=/root/.local/share/pnpm:/usr/local/bin:/usr/bin:/bin
|
||||||
ExecStart=/root/.local/share/pnpm/pnpm dev
|
ExecStart=/root/.local/share/pnpm/pnpm start
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ Wants=horux-api.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/root/Horux/apps/web
|
WorkingDirectory=/root/HoruxDespachos/apps/web
|
||||||
Environment=NODE_ENV=production
|
Environment=NODE_ENV=production
|
||||||
Environment=PATH=/root/.local/share/pnpm:/usr/local/bin:/usr/bin:/bin
|
Environment=PATH=/root/.local/share/pnpm:/usr/local/bin:/usr/bin:/bin
|
||||||
ExecStart=/root/.local/share/pnpm/pnpm dev
|
ExecStart=/root/.local/share/pnpm/pnpm start
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user