Initial commit
This commit is contained in:
16
deploy/systemd/chgrid-client-preview.service
Normal file
16
deploy/systemd/chgrid-client-preview.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=chgrid client preview server (vite)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=chgrid
|
||||
Group=chgrid
|
||||
WorkingDirectory=/opt/chgrid/client
|
||||
Environment=PATH=/usr/bin:/bin
|
||||
ExecStart=/usr/bin/npm run preview -- --host 0.0.0.0 --port 4173
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user