AgileVentures / AgileVentures/asyncvoter-api
Sensible config defaults when .env is missing
未關閉
- 主要語言
- JavaScript
- 星號
- 5
- 分支
- 7
- PR 合併指標
- PR 指標待擷取
描述
Currently if the .env file is missing, the server fails to start.
E.g. server port is defined by .env variable PORT
We should provide some sensible defaults (where possible) so that the server can run when the environment variables are missed (except when it's an absolute must).
eg. rather than `var port = process.env.PORT` we use `var port = process.env.PORT || 3000` or `var port = process.env.PORT || defaultConfig.port`
貢獻指南
評估
這個 Issue 還沒有評估資料。