Enable hot reload for dev environment
Some checks are pending
Build & Deploy OS League Tools / build-and-deploy (push) Has started running
Some checks are pending
Build & Deploy OS League Tools / build-and-deploy (push) Has started running
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user