fix: update deployment scripts to use dynamic DEPLOY_PATH for backend and frontend
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
module.exports = {
|
||||
apps: [{
|
||||
name: 'portfolio-backend', // A name for your application in PM2
|
||||
script: 'backend/server.js', // The path to the script PM2 will run
|
||||
script: 'server.js', // The path to the script PM2 will run
|
||||
cwd: `${process.env.DEPLOY_PATH}/backend`, // Current working directory for the script
|
||||
instances: 1, // Run a single instance of the application
|
||||
autorestart: true, // Automatically restart if the app crashes
|
||||
watch: false, // Do NOT watch for file changes in production
|
||||
|
||||
Reference in New Issue
Block a user