Creating Liberty servers from custom configurations

You can create a server from a custom configuration for any environment that you require.

About this task

The Liberty server script create command offers a --template option. You can use this option to support server creation from a custom configuration located within a templates/servers/<template-name> sub-directory of your product extension. Custom server templates must contain at least a server.xml file, and can contain any configuration files, for example: bootstrap.properties or jvm.options.

Procedure

You can use the --template option in the following way:
server create --template=<extension-name>:<template-name>