Improve use of Node http-server

This commit is contained in:
Joshua Granick
2014-12-30 12:40:03 -08:00
parent 17dce6cb57
commit 954ab3a32c
3 changed files with 33 additions and 13 deletions

View File

@@ -124,14 +124,14 @@ class HTML5Helper {
LogHelper.info ("", " - \x1b[1mStarting local web server:\x1b[0m http://localhost:" + port);
Thread.create (function () {
/*Thread.create (function () {
Sys.sleep (0.5);
ProcessHelper.openURL ("http://localhost:" + port);
});
});*/
var args = [ server, path, "-p", Std.string (port), "-c-1" ];
var args = [ server, path, "-p", Std.string (port), "-c-1", "-o", "-a", "localhost", "--cors" ];
if (!LogHelper.verbose) {