-
Notifications
You must be signed in to change notification settings - Fork 0
/
pm2.config.js
107 lines (106 loc) · 3.43 KB
/
pm2.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
module.exports = {
apps: [
{
name: "l2-micro-service",
script: "target/release/l2-micro-service",
env: {
ARBITRUM_SEPOLIA_RPC_URL: "https://arbitrum-sepolia-rpc.publicnode.com",
ARBITRUM_MAINNET_RPC_URL: "https://arbitrum-one-rpc.publicnode.com",
DB_URL: "postgresql://postgres:password@localhost:5432/l2indexer",
},
},
// {
// name: 'monitor-arbitrum-sepolia',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'sepolia',
// CHAIN_NAME: 'arbitrum',
// RPC_URL: 'https://ethereum-sepolia-rpc.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// },
{
name: "monitor-base-sepolia",
script: "target/release/monitor-events",
env: {
CHAIN_TYPE: "sepolia",
CHAIN_NAME: "base",
RPC_URL:
"https://eth-sepolia.g.alchemy.com/v2/1cpBOW7IDNaPC1Dybn6Qbv6uMszcmjlr",
DB_URL: "postgresql://postgres:password@localhost:5432/l2indexer",
},
},
{
name: "monitor-optimism-sepolia",
script: "target/release/monitor-events",
env: {
CHAIN_TYPE: "sepolia",
CHAIN_NAME: "optimism",
RPC_URL:
"https://eth-sepolia.g.alchemy.com/v2/1cpBOW7IDNaPC1Dybn6Qbv6uMszcmjlr",
DB_URL: "postgresql://postgres:password@localhost:5432/l2indexer",
},
},
{
name: "monitor-world-chain-sepolia",
script: "target/release/monitor-events",
env: {
CHAIN_TYPE: "sepolia",
CHAIN_NAME: "world_chain",
RPC_URL:
"https://eth-sepolia.g.alchemy.com/v2/1cpBOW7IDNaPC1Dybn6Qbv6uMszcmjlr",
DB_URL: "postgresql://postgres:password@localhost:5432/l2indexer",
},
},
// TODO: Zora docs haven't update sepolia `L2OutputOracle` address
// {
// name: 'monitor-zora-sepolia',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'sepolia',
// CHAIN_NAME: 'zora',
// RPC_URL: 'https://ethereum-sepolia-rpc.publicnode.com'
// }
// },
// {
// name: 'monitor-base-mainnet',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'mainnet',
// CHAIN_NAME: 'base',
// RPC_URL: 'https://ethereum-rpc.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// },
// {
// name: 'monitor-optimism-mainnet',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'mainnet',
// CHAIN_NAME: 'optimism',
// RPC_URL: 'https://ethereum-rpc.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// },
// {
// name: 'monitor-zora-mainnet',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'mainnet',
// CHAIN_NAME: 'zora',
// RPC_URL: 'https://ethereum-rpc.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// },
// {
// name: 'monitor-arbitrum-mainnet',
// script: 'target/release/monitor-events',
// env: {
// CHAIN_TYPE: 'mainnet',
// CHAIN_NAME: 'arbitrum',
// RPC_URL: 'https://ethereum-rpc.publicnode.com',
// DB_URL:'postgresql://postgres:password@localhost:5432/l2indexer',
// }
// }
],
};