Created
July 5, 2019 21:50
-
-
Save AhmedCommando/da592b5f1194677a96d4e486f515ff9a to your computer and use it in GitHub Desktop.
contains common pm2 configuration, will be exported and used by the development config and the production config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
name: "api-rest", | |
script: 'build/main.bundle.js', | |
watch: true, | |
ignore_watch: ["node_modules"], | |
// new feature; increase restart delay each time after every crash or non reachable db per example | |
exp_backoff_restart_delay: 100, | |
//combine multiple err/out logs in one file for each | |
combine_logs: true, | |
//calls combine logs | |
merge_logs: true, | |
//error log file path | |
error_file: "logs/err.log", // better be /var/log | |
//out log file path | |
out_file: "logs/out.log", | |
// use time in logs | |
time: true, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment