Switching the order of the html5 serve command, and making it blocking so ctrl-c will kill the server in console

This commit is contained in:
underscorediscovery
2013-09-12 20:17:08 -02:30
parent 471ebf3b2f
commit ff3adc86ca

View File

@@ -74,9 +74,11 @@ class RunScript {
case "serve":
//non blocking open the page
new sys.io.Process('open', ['http://localhost:55555/']);
//blocking server call
var args = ['server', '-p', '55555', '-h', 'localhost' ,'-d' , cwd + 'bin/html5/bin/'];
// new sys.io.Process('nekotools', args);
new sys.io.Process('open', ['http://localhost:55555/']);
//run the server
Sys.command("nekotools", args);
return true;