Skip to content

Instantly share code, notes, and snippets.

@gianpaj
Created April 4, 2017 13:41
Show Gist options
  • Save gianpaj/04c5680a8275616aac5e46374e07f673 to your computer and use it in GitHub Desktop.
Save gianpaj/04c5680a8275616aac5e46374e07f673 to your computer and use it in GitHub Desktop.
pm2 ecosystem.json
{
"apps": [
{
"name": "my-app-1",
"script": "./server.data/index.js"
},
{
"name": "static-http",
"script": "npm",
"args": "start"
}
]
}
@gianpaj
Copy link
Author

gianpaj commented Apr 4, 2017

For example, I have a folder structure like this:

$ tree -L 2
.
├── ecosystem.json
├── server.data
│   ├── index.js
├── server.static-http
│   ├── package.json
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment