Created
February 19, 2015 15:12
-
-
Save Unitech/c566f37c69d00466b492 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| { | |
| /** | |
| * 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