Skip to content

Commit b7c140f

Browse files
committed
add production env to start:prod script
1 parent 4f7c988 commit b7c140f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"start": "yarn typeorm schema:sync && nest start",
1111
"start:watch": "yarn typeorm schema:sync && nest start --watch",
1212
"start:debug": "nest start --debug --watch",
13-
"start:prod": "yarn typeorm schema:sync && NODE_PATH=dist/src node dist/src/main",
13+
"start:prod": "NODE_ENV=production yarn typeorm schema:sync && NODE_PATH=dist/src node dist/src/main",
1414
"typeorm": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js -d src/data-source.ts",
1515
"build": "rm -rf dist && tsc",
1616
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",

0 commit comments

Comments
 (0)