While desktop
applications development is a plus, you will definitely want to use Neko to serve your haXe applications
to a browser.
To deploy a website with Neko to a server, you need to install the mod_neko.ndll or mod_neko2.ndll
modules within an Apache web server. You learn how to do this later in the book, but for now, you will
make use of another feature of the NekoTools utility ??” the NekoTools web server.
The NekoTools web server is a great tool for building and testing your web - based haXe applications.
While not powerful enough to use as a production web server, it certainly provides all the features you
need to test your Neko applications with minimal fuss. The NekoTools web server will save you hours of
fiddling with transferring files or stopping and starting an Apache install. The server requires no prior
setup, except that you need to have haXe and Neko installed correctly on your development machine.
To start the NekoTools web server, go to the command line and enter the following:
> nekotools server -p < port > -h < hostname > -d < directory >
Chapter 2: Installing and Using haXe and Neko
21
Here, < port > should be a free port number on your machine, < hostname > is the domain of the test
website, and < directory > is the location of your Neko application.
Pages:
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76