22 lines
590 B
JavaScript
22 lines
590 B
JavaScript
module.exports = {
|
|
apps: [
|
|
{
|
|
...commonSettings,
|
|
name: 'new-auth-server',
|
|
script: './inventory-server/auth/server.js',
|
|
env: {
|
|
NODE_ENV: 'production',
|
|
AUTH_PORT: 3011,
|
|
JWT_SECRET: process.env.JWT_SECRET
|
|
},
|
|
error_file: 'inventory-server/auth/logs/pm2/err.log',
|
|
out_file: 'inventory-server/auth/logs/pm2/out.log',
|
|
log_file: 'inventory-server/auth/logs/pm2/combined.log',
|
|
env_production: {
|
|
NODE_ENV: 'production',
|
|
AUTH_PORT: 3011,
|
|
JWT_SECRET: process.env.JWT_SECRET
|
|
}
|
|
}
|
|
]
|
|
};
|