commit | 78ff07da632526ed5e45b0624bfb784f62c076ce | [log] [tgz] |
---|---|---|
author | Matteo <teone@users.noreply.github.com> | Mon Aug 01 09:57:16 2016 -0700 |
committer | Peter K. Lee <peter@corenova.com> | Mon Aug 01 09:57:16 2016 -0700 |
tree | 02a7df474df23e2616fd64468112f555de9dd26f | |
parent | 1c6e24ce1863a448a8d58a569c3f7eb926ce449b [diff] [blame] |
Added CLI option to specify server port (#1)
diff --git a/src/api/server.coffee b/src/api/server.coffee index 5fa7b8e..ae2ada4 100644 --- a/src/api/server.coffee +++ b/src/api/server.coffee
@@ -10,10 +10,11 @@ require('events').EventEmitter.defaultMaxListeners = 100 yang = require('yang-js') +argv = require('minimist')(process.argv.slice(2)) require('yang-express').run { - port: 5050 + port: argv.port || 5050 models: [ yang.require 'cord-core' yang.require 'xos-core'