Exports getServerEnvironment and environmentTypeEnumerate
- Version:
-
- 3.0.0
- Since:
-
- 3.0.0
- Source:
Members
-
<static, constant> environmentTypeEnumerate :String
-
Server Environment types Enumerate
Type:
- String
- Source:
Properties:
Name Type Default Description DEV
String development development STAGE
String stage stage PROD
String production production
Methods
-
<static> getServerEnvironment(devRegex, stageRegex)
-
Takes a devRegex and a stageRegex and tests them against hostname. Returns 'production' if the regexes do not capture any results from hostname
Parameters:
Name Type Description devRegex
RegExp stageRegex
RegExp Returns:
- Type
- Number