Enable hot reload for dev environment

This commit is contained in:
2026-01-17 01:12:05 +00:00
committed by sonderau
parent d50fb655b1
commit 28a2052cd6
2 changed files with 23 additions and 8 deletions

View File

@@ -10,11 +10,12 @@ Group=sonder
WorkingDirectory=/home/sonder/leagues-tools-dev/os-league-tools-master
# Environment variables
Environment="NODE_ENV=production"
Environment="NODE_ENV=development"
Environment="PORT=3001"
Environment="HOST=0.0.0.0"
# Start the application (serves the pre-built static files)
ExecStart=/usr/bin/serve -s build -l tcp://0.0.0.0:3001
# Start the dev server with hot reload
ExecStart=/usr/bin/npm run dev
# Restart policy
Restart=on-failure