Adding a fix for windows serve command to work properly
This commit is contained in:
@@ -75,8 +75,14 @@ class RunScript {
|
||||
case "serve":
|
||||
|
||||
//non blocking open the page
|
||||
new sys.io.Process('open', ['http://localhost:55555/']);
|
||||
var system = Sys.systemName();
|
||||
if(system == "Windows") {
|
||||
new sys.io.Process('cmd', ['/C start http://localhost:55555/']);
|
||||
} else {
|
||||
new sys.io.Process('open', ['http://localhost:55555/']);
|
||||
}
|
||||
//blocking server call
|
||||
|
||||
var args = ['server', '-p', '55555', '-h', 'localhost' ,'-d' , cwd + 'bin/html5/bin/'];
|
||||
//run the server
|
||||
Sys.command("nekotools", args);
|
||||
|
||||
Reference in New Issue
Block a user