fix(ecosystem): disable extra logging in production

This commit is contained in:
Alexis Tyler
2019-11-11 14:16:47 +10:30
parent 53b9e84bf3
commit fbb8989378
+4 -3
View File
@@ -1,7 +1,6 @@
/* eslint-disable camelcase */
const common = {
// Default values
name: 'graphql-api',
script: './index.js',
watch: false,
@@ -11,8 +10,7 @@ const common = {
out_file: '/var/log/graphql-api.log',
exp_backoff_restart_delay: 100,
max_memory_restart: '200M',
PORT: '/var/run/graphql-api.sock',
NODE_ENV: 'production'
PORT: '/var/run/graphql-api.sock'
};
const envs = {
@@ -25,6 +23,9 @@ const envs = {
},
env_debug: {
DEBUG: true
},
env_production: {
NODE_ENV: 'production'
}
};