Skip to content

Instantly share code, notes, and snippets.

@asifulmamun
Created August 14, 2025 12:56
Show Gist options
  • Save asifulmamun/c76b752673cb15370e9e69def07d77ab to your computer and use it in GitHub Desktop.
Save asifulmamun/c76b752673cb15370e9e69def07d77ab to your computer and use it in GitHub Desktop.
NodeJS ecosystem file for PM2
module.exports = {
apps: [
{
name: 'bazaarbound-backend',
script: 'dist/main.js', // adjust if your entry file is different
watch: ['./dist'],
env: {
NODE_ENV: 'production',
AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE: '1',
},
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment