From 07d3fc7b983f67192e864d227acbf30479d6997b Mon Sep 17 00:00:00 2001 From: chunge66 Date: Tue, 16 Jul 2019 19:31:01 +0800 Subject: [PATCH] Fix db init failed by upyun config error (#210) --- .gitignore | 6 +++++- config/config.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c4fa1f63..c8f8d743 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,8 @@ pids # https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git node_modules -coverage \ No newline at end of file +coverage + +# vs code +.history +.idea \ No newline at end of file diff --git a/config/config.js b/config/config.js index f92b0ee7..0789b5ee 100644 --- a/config/config.js +++ b/config/config.js @@ -22,7 +22,7 @@ config.development = { }, // Config for upyun (https://www.upyun.com/) storage when storageType value is "upyun" upyun: { - storageDir: process.evv.UPYUN_STORAGE_DIR, + storageDir: process.env.UPYUN_STORAGE_DIR, serviceName: process.env.UPYUN_SERVICE_NAME, operatorName: process.env.UPYUN_OPERATOR_NAME, operatorPass: process.env.UPYUN_OPERATOR_PASS,