Files
flyer-crawler.projectium.com/ecosystem.config.cjs
Torben Sorensen b800f85f9b
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 7m0s
move AI flyer processing to background BullMQ jobs using redis for storage
2025-12-02 18:12:39 -08:00

19 lines
819 B
JavaScript

// ecosystem.config.cjs
// This file is the standard way to configure applications for PM2.
// It allows us to define all the settings for our application in one place.
// The .cjs extension is required because the project's package.json has "type": "module".
module.exports = {
apps: [{
name: 'flyer-crawler-api', // The name of our application in PM2
// Explicitly set the working directory. This is crucial for reliability.
cwd: '/var/www/flyer-crawler.projectium.com',
// Use `tsx` directly as the interpreter. PM2 will find it in node_modules/.bin.
// This is more robust than calling `node` on the script path.
script: './node_modules/.bin/tsx',
args: 'server.ts',
env_production: {
NODE_ENV: 'production', // Set the Node.js environment to production
},
}],
};