Prev | Current Page 446 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

It is not
advisable to use the NekoTools as a production server but only as a lightweight development tool.
The windows distribution comes with a haxeserver.bat that is a shortcut to start the NekoTools
application as a web server.
The NekoTools can be configured using some switches on the execution command line and using a
special web page as it will be explained shortly. The base command to use NekoTools as a web server is
as follows:
> nekotools server
Used this way, an instance of the web server is executed and ready to accept calls over the HTTP
protocol on the default port 2000.
The NekoTools application can use the optional parameters described in Table 9 - 1 .
Table 9 - 1
Switch Options Description
- p < port > Uses a different server port. The default one is 2000 if the switch is omitted.
- h < host > Changes the server host. The default value is localhost .
- d < dir > Sets a specific directory as the root of the web server.
- log < file > Sets a log file to take trace of the operations performed by the web server.


Pages:
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458