Skip to content

Instantly share code, notes, and snippets.

@jbutko
Created May 2, 2019 14:30
Show Gist options
  • Save jbutko/d8f916cc0e159666c7c4f12fd5c66ef1 to your computer and use it in GitHub Desktop.
Save jbutko/d8f916cc0e159666c7c4f12fd5c66ef1 to your computer and use it in GitHub Desktop.
Prerender.io server pm2 config
{
"apps" : [{
"name" : "prerender.io",
"script" : "./server.js",
"watch" : false,
"node_args" : "--max_old_space_size=12288",
"NODE_ENV" :"prod",
"env": {
"PORT": 12345
},
"autorestart": true,
"instances" : 1,
"log_date_format": "DD.MM.YYYY HH:mm Z",
"error_file": "/apps/prerender.io/logs/pm2/error.log",
"out_file": "/apps/prerender.io/logs/pm2/out.log"
}]
}
// start with `pm2 start prerender-pm2-config.json`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment