Launcher v7 - nodeGame/nodegame GitHub Wiki
- status: complete
- version: 7.x
The node launcher script comes in with a number of options as listed here:
$ node launcher.js --help
Usage: launcher [options]
Options:
-V, --version output the version number
## Path to a conf file, other inline options are ignored.
-C, --config [confFile] Specifies a configuration file to load
## Inline options (more limited than a conf file).
-c, --confDir <confDir> Sets the configuration directory
-l, --logDir <logDir> Sets the log directory
-L, --logLevel <logDir> Sets the log level. Values: error(default)|warn|info|silly
-g, --gamesDir <gamesDir> Sets the games directory
-d, --debug Enables the debug mode
-i, --infoQuery Enables getting information via query-string ?q=
-b, --build [components] Rebuilds the specified components
-s, --ssl [path-to-ssl-dir] Starts the server with SSL encryption
-f, --default [channel] Sets the default channel
-P, --port [port] Sets the port of the server
Makes the game available on port 8081 (http://localhost:8081/mygame/
);
node launcher -P 8081
- Rebuild the specified modules before launching the server
node launcher -b window,widgets
Notice: no need to specify the module 'client' because it is always automatically rebuilt.