From 98239bf3247c53199c4624bc07af19b2a0f219b0 Mon Sep 17 00:00:00 2001 From: cebgcontract <99630598+cebgcontract@users.noreply.github.com> Date: Fri, 28 Oct 2022 10:43:01 +0800 Subject: [PATCH] update config --- .env.production | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.production b/.env.production index 79a273b..fbee08c 100644 --- a/.env.production +++ b/.env.production @@ -4,4 +4,4 @@ API_TOKEN_SECRET=sdf(**&*&xx2214 API_TOKEN_EXPIRESIN=1d GOOGLE_OAUTH_CLIENT="165555585193-glmtnb94s3kkq906hal72ppiuoqpjjc5.apps.googleusercontent.com" -DB_MAIN=mongodb://localhost/wallet-production \ No newline at end of file +DB_MAIN=mongodb://127.0.0.1/wallet-production \ No newline at end of file diff --git a/package.json b/package.json index 806a413..064fbad 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "dev:api": "ts-node -r tsconfig-paths/register src/api.ts", "build": "tsc", - "prod:api": "NODE_PATH=./dist node dist/api.js", + "prod:api": "NODE_ENV=production NODE_PATH=./dist node dist/api.js", "lint": "eslint --ext .ts src/**", "format": "eslint --ext .ts src/** --fix" },