26 lines
631 B
JavaScript
26 lines
631 B
JavaScript
module.exports = {
|
|
apps: [
|
|
{
|
|
// You can append the PM2_ENV dynamically in the script if you want unique names in the PM2 list,
|
|
// or rely on the directory path to keep them separate.
|
|
name: process.env.PM2_NAME || 'SearchTs',
|
|
// port: '3000',
|
|
// exec_mode: 'cluster',
|
|
// instances: 'max',
|
|
script: './.output/server/index.mjs',
|
|
|
|
// Triggered by 'staging' branch
|
|
env_staging: {
|
|
NODE_ENV: 'staging',
|
|
PORT: 3005
|
|
},
|
|
|
|
// Triggered by 'production' branch
|
|
env_production: {
|
|
NODE_ENV: 'production',
|
|
PORT: 3010
|
|
}
|
|
}
|
|
]
|
|
};
|