Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #405 from Financial-Times/ability-to-set-router-port
Browse files Browse the repository at this point in the history
Ability to set the port the router runs on
  • Loading branch information
ironsidevsquincy authored Jul 20, 2016
2 parents e3fea94 + 1b0a4b8 commit a789a73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function task (opts) {
.then(function () {
return Promise.all([
runLocal({ PORT: localPort, harmony: opts.harmony, debug: opts.debug, nodemon: opts.nodemon }),
runRouter({ PORT: 5050, localPort: localPort, harmony: opts.harmony, https: opts.https, cert: opts.cert, key: opts.key, localApps: localApps })
runRouter({ PORT: opts.port, localPort: localPort, harmony: opts.harmony, https: opts.https, cert: opts.cert, key: opts.key, localApps: localApps })
]);
});
}
Expand All @@ -164,6 +164,7 @@ module.exports = function (program, utils) {
.option('--cert <file>', 'Specify a certificate to use with HTTPS. Use with --https.')
.option('--key <file>', 'Specify a certificate key to use with HTTPS. Use with --https.')
.option('--local-apps <apps>', 'Specify extra apps that are running locally, as comma-seperated `[name]=[port]`, e.g. `service-worker=3001,front-page=3002`')
.option('-p --port <port>', 'Port to run the router through', 5050)
.action(function (opts){
task(opts).catch(utils.exit);
});
Expand Down

0 comments on commit a789a73

Please sign in to comment.