-
Notifications
You must be signed in to change notification settings - Fork 0
Process Flags
Process flags enable a few features such as overriding values in the config file or spinning up a server that only handles a resource.
--only=[controller|controllers,controllers]
Using the only flag, you can spin up a server that only binds routes for a specific controller or a group of controllers.
As an example, glad s --only=posts
would launch your app and allow traffic to routes handled by the posts controller.
If you would like to launch a group of controllers, you would simply comma separate the controllers such as glad s --only=posts,users
.
The convention is such that you provide the lowercase filename of your controller(s) that should be enabled.
If you are not using Glad CLI, this will still work with the node binary.
node index.js --only=posts
--port
| --host
| --sock
| --backlog
Using the server flags you can over ride the values in your config.js file.