Last active
December 15, 2019 09:26
-
-
Save ahmadina/36f7bfe5d48a7cd0e8aaf58739ff30e9 to your computer and use it in GitHub Desktop.
using PM2 for run ES6 (babel) application
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
{ | |
"apps": [{ | |
"name": "Application", | |
"exec_interpreter": "./node_modules/babel-cli/bin/babel-node.js", | |
"script": "./bin/www", | |
"args": [], | |
"watch": ["public", "package.json", "pm2.development.json"], | |
"ignore_watch": ["public"], | |
"watch_options": { | |
"persistent": true, | |
"follow_symlinks": true | |
}, | |
"log_date_format" : "YYYY/MM/DD HH:mm Z", | |
"interpreter_args": ["--presets", "es2015"], | |
"error_file": "./storage/logs/stderr.log", | |
"out_file": "./storage/logs/stdout.log", | |
"instances": 1, | |
"exec_mode": "fork", | |
"max_memory_restart": "512M", | |
"autorestart": true, | |
"merge_logs": true, | |
"env": { | |
"NODE_ENV": "development" | |
} | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment