Skip to main content

Build

The build command is in charge of building the final binary for the Ox app. It invokes things like the node build process before packing the binary embedding the asset files. This command attempts to build the Go application that's located within cmd/[app-name]/main.go. The end result of this command is a self-contained binary that can be executed to run the app.

Invoking the build command can be done by running:

ox build

Some other examples that could come handy are:

ox build -o name            # changes the name of the built outputox build --static -o name   # buils a static binaryox build --tags netdns=go   # specifying build tags to the go build commands

To know more about the command you can always use the help command.