Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Commit

Permalink
Controller now handles cases where the active supervisor port differs…
Browse files Browse the repository at this point in the history
… from the config by reading the port value from .active-server.json in the same manner as the rest port. (#204)
  • Loading branch information
Gwahir authored and jmdobry committed Nov 16, 2018
1 parent 9937c28 commit d38d0a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ class Controller {

const clientConfig = _.merge(this.config, {
host: opts.host || (!this.server.get('stopped') && this.server.get('host')) || this.config.host,
restPort: opts.restPort || this.server.get('restPort') || this.config.restPort
restPort: opts.restPort || this.server.get('restPort') || this.config.restPort,
supervisorPort: opts.supervisorPort || this.server.get('supervisorPort') || this.config.supervisorPort
});
this.client = Client.restClient(clientConfig);
}
Expand Down

0 comments on commit d38d0a0

Please sign in to comment.