Skip to content

Commit

Permalink
add file
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Cooper committed Nov 13, 2024
1 parent 2340740 commit bb2dcda
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
apps : [{
name: "my-app", // A name for your application
script: "app.js", // The script file to launch the app
instances: "max", // This can be set to the number of CPU cores to use, or "max" to use all available
autorestart: true, // Automatically restart app if it crashes
watch: false, // Enable/disable watching file changes for automatic restart
max_memory_restart: '1G', // Optional: Restart app if it reaches a memory limit
env: {
NODE_ENV: "development",
},
env_production: {
NODE_ENV: "production",
}
}]
};

0 comments on commit bb2dcda

Please sign in to comment.