Open michaelKurowski opened 7 years ago
https://github.com/Lukasz-Semik/cash-organizer/blob/80172dbca7300976928c065acc55a32c57a762f0/server/server.js#L6
Wouldn't it be better to do like: portFromConfigFile || environmentalVariable || 3000
Some ppl might prefer setting config file instead of environmental OS variables.
I need to learn more
Just create a JSON file somewhere, which will work as config, and import it.
https://github.com/Lukasz-Semik/cash-organizer/blob/80172dbca7300976928c065acc55a32c57a762f0/server/server.js#L6
Wouldn't it be better to do like: portFromConfigFile || environmentalVariable || 3000
Some ppl might prefer setting config file instead of environmental OS variables.