Skip to content

Instantly share code, notes, and snippets.

@Unitech
Created February 19, 2015 15:12
Show Gist options
  • Select an option

  • Save Unitech/c566f37c69d00466b492 to your computer and use it in GitHub Desktop.

Select an option

Save Unitech/c566f37c69d00466b492 to your computer and use it in GitHub Desktop.
{
/**
* This is a sample configuration file for PM2
*/
/**
* Here we declare the apps that must be managed by PM2
* All options are listed here:
* https://github.com/Unitech/PM2/blob/master/ADVANCED_README.md#json-app-declaration
*
*/
apps : [
{
name : "WEB",
script : "web.js"
}
],
/**
* PM2 help you to deploy apps over your servers
* For more help go to :
* https://github.com/Unitech/PM2/blob/master/ADVANCED_README.md#deployment-pm2--090
*/
deploy : {
production : {
user : "shant",
host : "127.0.0.1",
ref : "origin/master",
repo : "git@github.com:Unitech/PM2.git",
path : "/var/www/pm2",
"post-deploy" : "pm2 startOrRestart ecosystem.json5 --env production"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment