added front end service
This commit is contained in:
parent
aa6f1c15b7
commit
f753dfd74b
1 changed files with 29 additions and 0 deletions
29
frontend/notebookllama-frontend.service
Normal file
29
frontend/notebookllama-frontend.service
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
[Unit]
|
||||
Description=NotebookLlama Frontend (Next.js)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=michael_clervi
|
||||
Group=michael_clervi
|
||||
WorkingDirectory=/opt/sandbox-notebookllamalm-nextjs/frontend
|
||||
Environment="NODE_ENV=production"
|
||||
Environment="PATH=/usr/local/bin:/usr/bin:/bin"
|
||||
|
||||
# Start command (runs on port 4000)
|
||||
ExecStart=/usr/bin/npm start
|
||||
|
||||
# Restart behavior
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
# Logging
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=notebookllama-frontend
|
||||
|
||||
# Security
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Reference in a new issue