updates
This commit is contained in:
22
systemd/gnxsoft-frontend.service
Normal file
22
systemd/gnxsoft-frontend.service
Normal file
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=GNX-WEB Next.js Frontend
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=gnx
|
||||
Group=gnx
|
||||
WorkingDirectory=/home/gnx/Desktop/GNX-WEB/frontEnd
|
||||
Environment="NODE_ENV=production"
|
||||
Environment="PORT=1087"
|
||||
Environment="NEXT_TELEMETRY_DISABLED=1"
|
||||
EnvironmentFile=/home/gnx/Desktop/GNX-WEB/frontEnd/.env.production
|
||||
ExecStart=/usr/bin/npm start
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user