more unit testing
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m36s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 1m36s
This commit is contained in:
@@ -7,9 +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',
|
||||
script: 'npm', // The script to run (we want to run an npm command)
|
||||
args: 'run start', // The arguments to pass to the script (i.e., 'npm run start')
|
||||
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',
|
||||
env_production: {
|
||||
NODE_ENV: 'production', // Set the Node.js environment to production
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user