Time to wait before restarting a crashed app (in milliseconds). Number of consecutive unstable restarts (less than 1sec interval or custom time via min_uptime) before your app is considered errored and stop being restarted Instead of reload waiting for listen event, wait for nd(‘ready’) Shutdown an application with nd(‘shutdown’) instead of process.kill(pid, SIGINT) Time in milliseconds before sending a final SIGKILL Time in ms before forcing a reload if app not listening Min uptime of the app to be considered started Pid file path (default to $HOME/.pm2/pids/-.pid) If set to true, avoid to suffix logs file with the process idįalse by default. Output file path (default to $HOME/.pm2/logs/-out-.log)įile path for both output and error logs (disabled by default) ex) my-api-productionĭefault to true, Įxcludes global variables starting with “REACT_” and will not allow their penetration into the cluster.Įrror file path (default to $HOME/.pm2/logs/-error-.log) Use to deploy multiple environments on a single server. Inject when doing pm2 restart app.yml -envĭefault to false. human-friendly format : it can be “10M”, “100K”, “2G” and so on…Įnv variables which will appear in your app Your app will be restarted if it exceeds the amount of memory specified. List of regex to ignore some file or folder names by the watch feature Mode to start your app, can be “cluster” or “fork”, default forkĮnable watch & restart feature, if a file change in the folder or subfolder, your app will get reloaded Interpreter absolute path (default to node) String containing all arguments passed via CLI to script The directory from which your app will be launched Pm2 restart process.json -env developmentĪpplication behavior and configuration can be fine-tuned with the following attributes: General FieldĪpplication name (default to script filename without extension)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |