@onlineapps/service-wrapper 2.1.47 → 2.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +3 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
const path = require('path');
|
|
15
15
|
const ServiceWrapper = require('./ServiceWrapper');
|
|
16
16
|
const { ConfigLoader } = require('./ConfigLoader');
|
|
17
|
+
const runtimeCfg = require('./config');
|
|
17
18
|
|
|
18
19
|
// Note: WorkflowProcessor and ApiCaller functionality has been moved to connectors:
|
|
19
20
|
// - WorkflowProcessor -> @onlineapps/conn-orch-orchestrator
|
|
@@ -76,7 +77,8 @@ async function bootstrap(serviceRoot, options = {}) {
|
|
|
76
77
|
name: config.service.name,
|
|
77
78
|
version: config.service.version,
|
|
78
79
|
port: config.service.port,
|
|
79
|
-
url: config.service.url
|
|
80
|
+
url: config.service.url,
|
|
81
|
+
env: config.service.env || runtimeCfg.get('nodeEnv')
|
|
80
82
|
},
|
|
81
83
|
wrapper: config.wrapper
|
|
82
84
|
},
|