Skip to content

Instantly share code, notes, and snippets.

@MikeNats
Forked from ahmadina/pm2.json
Created June 7, 2017 19:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save MikeNats/03eef0e3ac57babb16194336e0e3c7c5 to your computer and use it in GitHub Desktop.
Save MikeNats/03eef0e3ac57babb16194336e0e3c7c5 to your computer and use it in GitHub Desktop.
using PM2 for run ES6 (babel) application
{
"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