Files
api/ecosystem.config.js
Alexis Tyler f723042f63 chore(dev): cleaned up "dev" script and added "DEBUG" mode
Cleaned up "dev" script and added playground/introspection when in DEBUG mode.
2019-10-13 13:21:27 +10:30

29 lines
508 B
JavaScript

/* eslint-disable camelcase */
module.exports = {
apps: [{
name: 'graphql-api',
script: './index.js',
watch: false,
wait_ready: true,
listen_timeout: 3000,
env: {
PORT: 5000,
NODE_ENV: 'development'
},
'env_safe-mode': {
PORT: '/var/run/graphql-api.sock',
NODE_ENV: 'safe-mode'
},
env_debug: {
PORT: '/var/run/graphql-api.sock',
NODE_ENV: 'production',
DEBUG: true
},
env_production: {
PORT: '/var/run/graphql-api.sock',
NODE_ENV: 'production'
}
}]
};