File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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' ] ) {
You can’t perform that action at this time.
0 commit comments