From 070dd27f959a704138055a65ac6a340d63b162e0 Mon Sep 17 00:00:00 2001 From: vazontang <31801725+vazontang@users.noreply.github.com> Date: Thu, 15 Mar 2018 04:07:45 +0800 Subject: [PATCH] Convert HMD_MINIO_PORT into Number type. fix hackmdio/hackmd#763 Signed-off-by: Tang TsungYi --- lib/config/environment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/environment.js b/lib/config/environment.js index b83c67e50..403c7d75a 100644 --- a/lib/config/environment.js +++ b/lib/config/environment.js @@ -39,7 +39,7 @@ module.exports = { secretKey: process.env.HMD_MINIO_SECRET_KEY, endPoint: process.env.HMD_MINIO_ENDPOINT, secure: toBooleanConfig(process.env.HMD_MINIO_SECURE), - port: process.env.HMD_MINIO_PORT + port: parseInt(process.env.HMD_MINIO_PORT) }, s3bucket: process.env.HMD_S3_BUCKET, facebook: {