forked from os-js/OS.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Watch all the server directory, php version will not be used in the f…
…uture
- Loading branch information
1 parent
9fdf26a
commit 147c131
Showing
2 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,6 @@ | ||
@ECHO OFF | ||
for %%i in ("%~dp0..") do set "folder=%%~fi" | ||
ECHO This script will launch OS.js in node using: `node src\server\node\server.js dist-dev` | ||
ECHO This script will launch OS.js in node using: `node src\server\node\server.js dist` | ||
ECHO To stop node server, press CTRL+C | ||
|
||
where /q supervisor | ||
IF ERRORLEVEL 1 ( | ||
ECHO supervisor not installed, the server will not be live reloaded | ||
node "%folder%\src\server\node\server.js" dist-dev | ||
) ELSE ( | ||
ECHO supervisor is installed, live reload is active | ||
supervisor --watch "%folder%\src\server\node","%folder%\src\server\settings.json" -- "%folder%\src\server\node\server.js" dist-dev | ||
) | ||
pause | ||
node "%folder%\src\server\node\server.js" |