Made it so production is default, fixes windows issue

This commit is contained in:
subnub
2020-05-25 20:43:21 -04:00
parent d64e50b10f
commit 698a41732d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ const getEnvVariables = () => {
const processType = process.env.NODE_ENV;
if (processType === 'production') {
if (processType === 'production' || processType === undefined) {
require('dotenv').config({ path: configPath + "/prod.env"})
+1 -1
View File
@@ -14,7 +14,7 @@
"build:dev": "tsc && webpack --env development",
"dev-server": "webpack-dev-server",
"test": "NODE_ENV=test env-cmd -f ./config/test.env jest --config=jest.config.json --watchAll --runInBand",
"start:dev": "node dist/server/serverStart.js",
"start:dev": "NODE_ENV=dev node dist/server/serverStart.js",
"start": "node dist/server/serverStart.js --env production",
"create-indexes-database": "node serverUtils/createIndexes.js",
"increase-node-memory": "export NODE_OPTIONS=--max_old_space_size=8000",