niftylettuce/expressling — comment on commit e382f4e9c1ee4cf691108358f0424f3bc07a26a1
File: server.js line 41
By niftylettuce:

Basically `config.json` is loaded by the `config` variable a few LOC above this. Then based off the environment (e.g. production or development) a specific port is used. The port is loaded by the respective object based off `env` inside `config.json`. So if we normally ran `node server.js` it would use the development environment and thus `env = "development";` -- so in turn `config["development"].port` loads port `8080`.