Application Server Flags

Application Server Flags

Flags are generally not used, as the configuration files (models.json) are easier to deal with. There are however, a few flags that can be used when starting the server:

  • -dr
    • The -dr switch is used to perform a destructive reset of the application’s data tables. This flag causes the application tables to be dropped and recreated, but does not affect the user, user-group, or authorization tables.
    go run main.go -dev -dr
  • -rs
    • The -rs switch is used to add new auths detected in the route and add them to the Super user-group. It is a good idea to run with this flag in changing environments.
    go run main.go -dev -rs