anything.json
server.json
, but you can actually call the file anything you want as long as you use the file's path (or unique name) when starting the server.Info It's important to always use a name when starting more than one server. Otherwise, the settings will override each other and only the last server will be saved. Also, you will only be able to stop the last server via thestop
command.
serverConfigFile
parameter, but when CommandBox sees us use the name
parameter, it will automatically create a file called server-{name}.json
. In this case, we'll have 3 new files:server show
command, you'll see it returns {}
. This is because it looks for a file called server.json
by default. Not to worry, you can still programmatically manipulate your JSON files like so:Info The property name and server config file path are interchangeable for theserver show
andserver clear
commands for your convenience.
serverConfigFile
parameter.server
commands