20 lines
639 B
SYSTEMD
20 lines
639 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=GetCito Background Worker
|
||
|
|
After=network.target postgresql.service getcito.service
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=simple
|
||
|
|
User=ubuntu
|
||
|
|
WorkingDirectory=/home/ubuntu/getcito/apps/worker
|
||
|
|
Environment=PATH=/opt/node24/bin:/usr/local/bin:/usr/bin:/bin
|
||
|
|
Environment=NODE_ENV=production
|
||
|
|
EnvironmentFile=/home/ubuntu/getcito/.env
|
||
|
|
ExecStart=/opt/node24/bin/node /home/ubuntu/getcito/node_modules/tsx/dist/cli.mjs /home/ubuntu/getcito/apps/worker/src/index.ts
|
||
|
|
Restart=always
|
||
|
|
RestartSec=5
|
||
|
|
StandardOutput=append:/home/ubuntu/getcito/logs/worker.log
|
||
|
|
StandardError=append:/home/ubuntu/getcito/logs/worker-error.log
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|