File size: 296 Bytes
bad179a
 
 
 
 
 
 
1
2
3
4
5
6
7
8
@echo off

rem Starts Server Monitor (web) and opens the page. Another port: set PORT=9000 before running.
cd /d "%~dp0"
if not defined PORT set PORT=8765
start "" /b powershell -NoProfile -Command "Start-Sleep 2; Start-Process http://127.0.0.1:%PORT%"
node server.js
if errorlevel 1 pause