Prev | Current Page 65 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

The default for the port number is
2000 and the hostname is localhost , which should be sufficient in most situations. Also, you should
not need to specify the directory switch if your current directory is the application directory. This means,
in most situations, you could probably get away with starting the server by navigating to your
application directory and entering the following at the command line:
cmd > nekotools server
Now, open a browser and navigate to http://localhost:2000/helloworld.n or other URL if you
have supplied different values to the defaults. If you were successful in starting the NekoTools web
server, you should see the usual Hello World! greeting, much like the previous examples. If, however,
you do not see this result or your web browser complains that it cannot find the specified web page, it
could be that you have not set the correct directory when calling the URL. Don ??™ t worry if this is the case,
as you can modify the root location of the NekoTools web server at any time.


Pages:
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77