more unit testing
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m31s

This commit is contained in:
2025-11-22 18:02:47 -08:00
parent 385ae80537
commit f829b74942

View File

@@ -7,11 +7,11 @@ 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',
// Instead of using 'npm run start', we call the 'tsx' executable directly from node_modules.
// This avoids PATH issues within the PM2 environment.
script: './node_modules/.bin/tsx',
args: '--env-file .env server.ts',
cwd: '/var/www/flyer-crawler.projectium.com',
// Use `npm` as the interpreter and tell it to run the `start` script.
// This is the most reliable way to run Node.js apps with PM2.
script: 'npm',
args: 'run start',
env_production: {
NODE_ENV: 'production', // Set the Node.js environment to production
},