implementation of ecosystem.config.js
This commit is contained in:
31
.gitignore
vendored
31
.gitignore
vendored
@@ -1,5 +1,34 @@
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
|
||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||
lib-cov
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage
|
||||
|
||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
||||
.grunt
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
||||
build/Release
|
||||
|
||||
# Dependency directory
|
||||
node_modules
|
||||
cypress/videos
|
||||
cypress/screenshots
|
||||
.next
|
||||
.env.local
|
||||
.env*
|
||||
.env
|
||||
.idea
|
||||
package-lock.json
|
||||
ecosystem.config
|
||||
18
ecosystem.config.example
Normal file
18
ecosystem.config.example
Normal file
@@ -0,0 +1,18 @@
|
||||
module.exports = {
|
||||
apps: [{
|
||||
name: "loan facilities user",
|
||||
script: 'node_modules/next/dist/bin/next', // cluster mode run with node only, not npm
|
||||
args: 'start -p 3001',
|
||||
exec_mode: "cluster", // default fork
|
||||
instances: "10",
|
||||
kill_timeout: 4000,
|
||||
wait_ready: true,
|
||||
autorestart: true,
|
||||
watch: false,
|
||||
max_memory_restart: "1G",
|
||||
log_date_format: "YYYY-MM-DD HH:mm Z",
|
||||
env_prod: {
|
||||
APP_ENV: 'prod' // APP_ENV=prod
|
||||
}
|
||||
}],
|
||||
};
|
||||
Reference in New Issue
Block a user