Added PM2 config

This commit is contained in:
Ishan Jain 2021-08-19 15:29:48 +05:30
parent c0ad686168
commit 74b39c4886

21
ecosystem.config.js Normal file
View File

@ -0,0 +1,21 @@
module.exports = {
apps: [
{
name: 'assembly',
exec_mode: 'cluster',
instances: 'max',
script: './node_modules/nuxt/bin/nuxt.js',
args: 'start',
env: {
NODE_ENV: 'production',
HOST: 'localhost',
PORT: 4000,
},
env_production: {
NODE_ENV: 'production',
PORT: '4000',
HOST: 'localhost'
},
},
],
}