diff --git a/ecosystem.config.js b/ecosystem.config.js index 2df2fdf..3c9d389 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -2,12 +2,13 @@ module.exports = { apps: [ { name: 'on-site-survey', - // script: 'node_modules/next/dist/bin/next', - script: 'npm.cmd', - args: 'start', - cwd: 'C:\\interplug\\onsitesurvey', + script: 'node_modules/next/dist/bin/next', instances: 2, exec_mode: 'cluster', + env_file: '.env.production', + env: { + NODE_ENV: 'production', + }, }, ], }