-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathecosystem.config.js
65 lines (64 loc) · 1.46 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Install pm2:
// ```
// npm install pm2@latest -g
// ```
//
// Start all the services (they will take a few seconds to start up):
// ```
// pm2 start
// ```
//
// Then hit https://localhost:4000/my-account/bookings/upcoming
//
// Not working? You can see logs for all of the services with:
//
// ```
// pm2 logs
// ```
//
// or any individual service with:
//
// ```
// pm2 logs <id>
// ```
//
// Where <id> is the id of the service (run `pm2 ls` to list all services).
module.exports = {
apps: [
{
name: 'loi-application-service',
script: 'npm',
args: 'run start',
},
{
name: 'loi-user-service',
script: 'npm',
args: 'run start',
cwd: '../loi-user-service',
},
{
name: 'loi-submission-service',
script: 'npm',
args: 'run start dev-server',
cwd: '../loi-submission-service',
},
{
name: 'loi-notification-service',
script: 'node',
args: 'server.js 1234',
cwd: '../loi-notification-service',
},
{
name: 'loi-address-service',
script: 'node',
args: 'server.js 7878',
cwd: '../loi-address-service',
},
{
name: 'loi-payment-service',
script: 'npm',
args: 'run start',
cwd: '../loi-payment-service',
},
],
};