aboutsummaryrefslogtreecommitdiff
path: root/ecosystem.config.js
blob: d76aa265c3a4fbb0880ac1706f235fb52de80cc3 (plain)
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
module.exports = {
	apps: [
		{
			name: 'bush-bot',
			script: 'yarn',
			args: 'start',
			out_file: '../bushbot.log',
			error_file: '../bushbot.log',
			max_memory_restart: '1G',
			node_args: ['--max_old_space_size=2048'],
			env: {
				FORCE_COLOR: '3'
			},
			exp_backoff_restart_delay: 2500,
			wait_ready: true
		},
		{
			name: 'bush-bot-beta',
			script: 'yarn',
			args: 'start',
			out_file: '../bushbot-beta.log',
			error_file: '../bushbot-beta.log',
			max_memory_restart: '1G',
			node_args: ['--max_old_space_size=2048'],
			env: {
				FORCE_COLOR: '3'
			},
			exp_backoff_restart_delay: 2500,
			wait_ready: true
		}
	],

	deploy: {
		production: {
			'user': 'pi',
			'host': '192.168.1.240',
			'ref': 'origin/master',
			'repo': 'https://github.com/NotEnoughUpdates/bush-bot.git',
			'path': '/code/bush-bot',
			'post-deploy': 'yarn install && yarn build && yarn start ecosystem.config.js --only bush-bot'
		},
		beta: {
			'user': 'pi',
			'host': '192.168.1.240',
			'ref': 'origin/beta',
			'repo': 'https://github.com/NotEnoughUpdates/bush-bot.git',
			'path': '/code/bush-bot-beta',
			'post-deploy': 'yarn install && yarn build && yarn start ecosystem.config.js --only bush-bot-beta'
		}
	}
};