Add dev branch deployment support
All checks were successful
Build & Deploy OS League Tools / build-and-deploy (push) Successful in 36s
All checks were successful
Build & Deploy OS League Tools / build-and-deploy (push) Successful in 36s
This commit is contained in:
33
os-league-tools-dev.service
Normal file
33
os-league-tools-dev.service
Normal file
@@ -0,0 +1,33 @@
|
||||
[Unit]
|
||||
Description=OS League Tools - Dev Environment
|
||||
After=network.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=sonder
|
||||
Group=sonder
|
||||
WorkingDirectory=/home/sonder/leagues-tools-dev/os-league-tools-master
|
||||
|
||||
# Environment variables
|
||||
Environment="NODE_ENV=production"
|
||||
Environment="PORT=3001"
|
||||
|
||||
# Start the application (serves the pre-built static files)
|
||||
ExecStart=/usr/bin/serve -s build -l tcp://0.0.0.0:3001
|
||||
|
||||
# Restart policy
|
||||
Restart=on-failure
|
||||
RestartSec=10s
|
||||
|
||||
# Logging
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=os-league-tools-dev
|
||||
|
||||
# Security hardening
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user