diff --git a/deploy/systemd/horux-api.service b/deploy/systemd/horux-api.service new file mode 100644 index 0000000..32ca81a --- /dev/null +++ b/deploy/systemd/horux-api.service @@ -0,0 +1,17 @@ +[Unit] +Description=Horux360 API Server +After=network.target postgresql.service +Wants=postgresql.service + +[Service] +Type=simple +User=root +WorkingDirectory=/root/Horux/apps/api +Environment=NODE_ENV=production +Environment=PATH=/root/.local/share/pnpm:/usr/local/bin:/usr/bin:/bin +ExecStart=/root/.local/share/pnpm/pnpm dev +Restart=always +RestartSec=10 + +[Install] +WantedBy=multi-user.target diff --git a/deploy/systemd/horux-web.service b/deploy/systemd/horux-web.service new file mode 100644 index 0000000..0a0ca36 --- /dev/null +++ b/deploy/systemd/horux-web.service @@ -0,0 +1,17 @@ +[Unit] +Description=Horux360 Web Frontend +After=network.target horux-api.service +Wants=horux-api.service + +[Service] +Type=simple +User=root +WorkingDirectory=/root/Horux/apps/web +Environment=NODE_ENV=production +Environment=PATH=/root/.local/share/pnpm:/usr/local/bin:/usr/bin:/bin +ExecStart=/root/.local/share/pnpm/pnpm dev +Restart=always +RestartSec=10 + +[Install] +WantedBy=multi-user.target