Skip to content

Commit 63ba36b

Browse files
committed
Move port insertion from the gateway to the config setup.
1 parent 3078caa commit 63ba36b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

cli/lib/gateway.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,15 @@ Gateway.prototype.start = (options) => {
3838
edgeconfig.get({
3939
systemConfigPath: options.systemConfigPath,
4040
apidEndpoint: options.apidEndpoint,
41-
configFile: options.configFile
41+
configFile: options.configFile,
42+
port: options.port
4243
}, (err, config) => {
4344
if (err) {
4445
if(err.name == 'YAMLException') {
4546
err.message = err.name + ' ' + err.reason + '\n Please run the config command with the same arguments to see a unified config file to see the issue.';
4647
}
4748
return console.log('Error downloading configuration. Gateway not started. Reason: ', err.message);
4849
} else {
49-
if (options.port) {
50-
config.system.port = parseInt(options.port);
51-
}
5250

5351
//inject the apidEndpoint to analytics plugin config
5452
if(options.apidEndpoint && config['analytics-apid']) {

0 commit comments

Comments
 (0)