Make _config/server.jst construct the Server object and pass options into it, rather...
authorNick Downing <nick@ndcode.org>
Tue, 4 Dec 2018 02:42:48 +0000 (13:42 +1100)
committerNick Downing <nick@ndcode.org>
Tue, 4 Dec 2018 02:42:48 +0000 (13:42 +1100)
commitfbc1e0444fd6c86968baf7cd9bb1d2fbfd3acc87
treef01fee6cd19cff59ded288a50be2efddda295d81
parent24a3d83c3a4b515e8bec2b694f00ee179e88495e
Make _config/server.jst construct the Server object and pass options into it, rather than just returning the options to be used, make cli.js and _config/server.jst pass the previous server into the Server constructor to be able to determine what ports are already being listened to, make refresh_config() just a periodic call from outside that tries to align Server.listen with Server.options.listen
Server.js
_config/server.jst
cli.js