Closed miketeix closed 6 years ago
Pretty sure this is no secret. This is what it is on our production server:
module.exports = {
/**
* Application configuration section
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
apps : [
// First application
{
name : 'feathers',
script : 'build/index.js',
log_date_format: 'YYYY-MM-DD HH:mm',
env: {
COMMON_VARIABLE: 'true'
},
env_production : {
NODE_ENV: 'production'
}
}
]
};
@perissology should this file ecosystem.config.js
be in git?
sure
I'm looking into getting your feathers app to run with pm2 using the 'npm serve' script but it's complaining about a missing ecosystem.config.js file - was just wondering how I should set it up and how it might relate to the config/default.json file that already exists.