evoluteur / evolutility-server-node

Model-driven REST APIs for CRUD and more, written in Javascript, using Node.js, Express, and PostgreSQL.
GNU Affero General Public License v3.0
112 stars 33 forks source link

Setting PORT overrides apiPort but does not display #19

Closed david-pfx closed 5 years ago

david-pfx commented 5 years ago

Setting PORT overrides apiPort but does not display

In www: var port = normalizePort(process.env.PORT || config.apiPort || '3000');

In logger.js: const apiRoot = 'http://localhost:'+config.apiPort+config.apiPath;

Solution: remove this logic from www, just rely on config.js. var port = config.apiPort

evoluteur commented 5 years ago

Done.