Created
April 11, 2015 19:54
-
-
Save FGRibreau/13e07036ecd89617a4ee to your computer and use it in GitHub Desktop.
pm2 cluster_mode configuration file http://blog.fgribreau.com/2015/04/pm2-tips-uncommon-ssh-port-and.html
This file contains 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
{ | |
"apps": [{ | |
"name": "My app", | |
"script": "server.js", | |
"instances": 2, | |
"port": 8080, | |
"exec_mode": "cluster_mode" | |
}], | |
"deploy": { | |
"production": { | |
"user": "node", | |
"host": [{ | |
"host": "my-host-name -p 22115", | |
}], | |
"ref": "origin/master", | |
"repo": "git@github.com:user/repo.git", | |
"path": "/app", | |
"post-deploy": "pm2 startOrRestart ecosystem.json --env production" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment