This repository was archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.js
65 lines (65 loc) · 2.03 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
/*
* Copyright © 2022 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified,
* propagated, or distributed except according to the terms contained in the
* LICENSE file.
*
* Removal or modification of this copyright notice is prohibited.
*
*/
module.exports = {
apps: [
{
name: 'lisk-core',
script: './bin/run',
args: 'start --network=mainnet --api-ipc --api-ws --log=info',
// env: {
// LISK_NETWORK: 'mainnet',
// LISK_LOG_LEVEL: 'warn',
// LISK_CONFIG_FILE: '',
// LISK_DATA_PATH: '',
// LISK_API_IPC: true,
// LISK_API_WS: true,
// LISK_API_HTTP: false,
// LISK_API_HOST: '127.0.0.1',
// LISK_API_PORT: 7887,
// },
pid_file: './pids/lisk-core.pid',
out_file: './logs/lisk-core.log',
error_file: './logs/lisk-core.err',
log_date_format: 'YYYY-MM-DD HH:mm:ss',
},
],
deploy: {
local: {
host: '127.0.0.1',
// key: process.env.HOME + '/.ssh/id_rsa',
ref: 'origin/main',
repo: 'https://github.com/LiskHQ/lisk-core.git',
path: '/tmp/lisk-core',
'pre-setup': 'rm -rf /tmp/lisk-core',
'post-setup':
'source ~/.bashrc; source ~/.zshrc; nvm install && yarn install --frozen-lockfile && npm run build',
'pre-deploy': 'source ~/.bashrc; source ~/.zshrc; pm2 del lisk-core;:',
'post-deploy': 'source ~/.bashrc; source ~/.zshrc; pm2 start ecosystem.config.js',
},
remote: {
host: ['8.8.8.8'],
user: 'root',
key: process.env.HOME + '/.ssh/id_rsa',
ref: 'origin/main',
repo: 'https://github.com/LiskHQ/lisk-core.git',
path: '/tmp/lisk-core',
'pre-setup': 'rm -rf /tmp/lisk-core',
'post-setup':
'source ~/.bashrc; nvm install && yarn install --frozen-lockfile && npm run build',
'pre-deploy': 'source ~/.bashrc; pm2 del lisk-core;:',
'post-deploy': 'source ~/.bashrc; pm2 start ecosystem.config.js',
},
},
};