-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem.config.js
43 lines (43 loc) · 988 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
41
42
43
module.exports = {
apps: [{
name: "extract-data",
script: "./src/data-extractor.js",
cwd: ".",
watch: false,
autorestart: false,
node_args: [],
exec_mode: "fork",
args: [
"0",
"1000000",
"10000"
],
env: {
"NODE_ENV": "development",
"JSONRPC_URL": "https://mainnet.infura.io/v3/<YOUR-PROJECT-ID>",
"IPC_PATH": "/home/developer/.ethereum/goerli/geth.ipc"
},
env_production: {
"NODE_ENV": "production",
"JSONRPC_URL": "http://127.0.0.1:8545",
"IPC_PATH": "/home/developer/.ethereum/goerli/geth.ipc"
}
},
{
name: "create-index",
script: "./src/index-creator.js",
cwd: ".",
watch: false,
autorestart: false,
node_args: [],
exec_mode: "fork",
args: [],
env: {
"NODE_ENV": "development"
},
env_production: {
"NODE_ENV": "production"
}
}
]
};