Module: Feature_ConfigByHostname

Enable server specific config identified by host name.

Source:
features/configByHostname.js

Members


<static> type :string

This feature is loaded at configuration stage

Type:
  • string
Source:
features/configByHostname.js

<static> type :string

This feature is loaded at configuration stage

Type:
  • string
Source:
features/configFromDataSource.js

Methods


<static> load_(app, options)

Load the feature

Parameters:
Name Type Description
app App

The cli app module object

options object

Options for the feature

Properties:
Name Type Argument Description
options.fallbackName string <optional>

Fallback name if hostname not available

Source:
features/configByHostname.js
Returns:
Type
Promise.<*>

<static> load_(app, config)

Load the feature

Parameters:
Name Type Description
app App

The cli app module object

config object

Config for the feature

Properties:
Name Type Argument Description
config.driver string <optional>

Data source driver

config.connectionString string <optional>

Connection string

config.entity string <optional>

Entity of the config

config.key string <optional>

Query key of the config

Source:
features/configFromDataSource.js
Returns:
Type
Promise.<*>

Module: Feature_ConfigByHostname

Enable server specific config identified by host name.

Source:
features/configFromDataSource.js

Members


<static> type :string

This feature is loaded at configuration stage

Type:
  • string
Source:
features/configByHostname.js

<static> type :string

This feature is loaded at configuration stage

Type:
  • string
Source:
features/configFromDataSource.js

Methods


<static> load_(app, options)

Load the feature

Parameters:
Name Type Description
app App

The cli app module object

options object

Options for the feature

Properties:
Name Type Argument Description
options.fallbackName string <optional>

Fallback name if hostname not available

Source:
features/configByHostname.js
Returns:
Type
Promise.<*>

<static> load_(app, config)

Load the feature

Parameters:
Name Type Description
app App

The cli app module object

config object

Config for the feature

Properties:
Name Type Argument Description
config.driver string <optional>

Data source driver

config.connectionString string <optional>

Connection string

config.entity string <optional>

Entity of the config

config.key string <optional>

Query key of the config

Source:
features/configFromDataSource.js
Returns:
Type
Promise.<*>