-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.json
More file actions
32 lines (32 loc) · 966 Bytes
/
ecosystem.json
File metadata and controls
32 lines (32 loc) · 966 Bytes
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
{
"apps": [
{
"name": "kicker",
"script": "dist/app.js",
"env": {
"NODE_ENV": "dev",
"KICKER_ENV": "dev"
},
"env_prod": {
"NODE_ENV": "prod",
"KICKER_ENV": "prod"
},
"watch": true
}
],
"deploy": {
"prod": {
"key": "~/.ssh/id_rsa",
"user": "pi",
"host": ["192.168.9.76"],
"ssh_options": "StrictHostKeyChecking=no",
"ref": "origin/master",
"repo": "git@github.com:observation-point/kicker_automatization.git",
"path": "/home/pi/projects/kicker_automatization",
"pre-setup": "echo 'PRE SETUP'",
"post-setup": "echo 'POST SETUP'",
"pre-deploy-local": "yarn compile && tar czfP dist.tar.gz dist && scp dist.tar.gz pi@observer.lan:~/projects/kicker_automatization/current",
"post-deploy": "rm -rf ./dist && tar -xzf dist.tar.gz && yarn install && pm2 start ecosystem.json --env prod && rm dist.tar.gz"
}
}
}