Adding a fix for windows serve command to work properly

This commit is contained in:
underscorediscovery
2013-09-23 21:30:55 -02:30
parent 8b28604f8e
commit 502648fd6d
2 changed files with 7 additions and 1 deletions

BIN
run.n vendored

Binary file not shown.

View File

@@ -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);