server.json is now implemented in CommandBox.
server set port=8080 server show port server start
All settings that you can start a server with are persisted and re-used on the next start and can be shipped with a project as defaults in the server.json file in the webroot.
So if you want to ship an app that requires a custom rewrite file for instance, you place a server.json in the root and the first time it is started, it will suck in those settings.
Any server settings changed via “server set” are automatically persisted in the server.json
So settings are loaded with this precedence
- Typed by the user into the start command parameters
- Read from box.json
- Internal defaults from the ServerService