Skip to content

Instantly share code, notes, and snippets.

@Unitech
Created June 11, 2014 10:32
Show Gist options
  • Save Unitech/6046957ed7443824bfa5 to your computer and use it in GitHub Desktop.
Save Unitech/6046957ed7443824bfa5 to your computer and use it in GitHub Desktop.
pm2 deploy
{
apps : [{
"name" : "api",
"script" : "./app1/api.js",
"instances" : "4"
},{
"name" : "dev-api",
"script" : "./app2/child.js",
"instances" : "1"
}],
deploy : {
"key" : "/home/tknew/.ssh/id_dsa",
"user" : "node",
"host" : "212.81.163.168",
"repo" : "[email protected]:Unitech/keymetrics.git",
"path" : "/var/www/keymetrics",
"ref" : "origin/master"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment