-
Notifications
You must be signed in to change notification settings - Fork 1
/
ecosystem.config.js
40 lines (40 loc) · 962 Bytes
/
ecosystem.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* ? installed pm2 global:
** -`npm install pm2 -g`
*
* ? I want to manage both Client and Server processes with one command. It's not mandatory.
*
* todo: To start process digit in terminal
** -`pm2 start ecosystem.config.js`
* todo: To stop:
** -`pm2 stop all` or
** -`pm2 stop <process_id>` or
** -`pm2 stop Client` or
** -`pm2 stop Server`
* todo: To delete process:
** -`pm2 delete all`
** -`pm2 delete <process_id>` or
** -`pm2 delete Client` or
** -`pm2 delete Server`
* todo: To view list process:
** - `pm2 list`
*/
module.exports = {
apps: [
{
name: 'client',
script: 'cd client && npm run dev', /* http://localhost:3000 */
watch: true,
},
{
name: 'server',
script: 'cd server && npm run start', /* http://localhost:8000 */
watch: true,
},
{
name: 'docs',
script: 'npm run docs:dev', /* http://localhost:5173/ */
watch: true,
}
]
};