more unit testing
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m31s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m31s
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user