AgileVentures / AgileVentures/asyncvoter-api

Sensible config defaults when .env is missing

未關閉
#28 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。