Add pm2 config

This commit is contained in:
2022-07-25 04:13:12 +00:00
parent e260756ce9
commit 4418ec2b82

10
ecosystem.config.js Normal file
View File

@@ -0,0 +1,10 @@
module.exports = {
apps: [ {
name: 'summer-dci',
script: `${__dirname}/dist/server.js`,
env: {
NODE_ENV: 'production',
PAYLOAD_CONFIG_PATH: 'dist/payload.config.js'
}
} ]
};