-
Notifications
You must be signed in to change notification settings - Fork 0
/
Skyfile.js
80 lines (73 loc) · 1.67 KB
/
Skyfile.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
'use strict'
/* global sneaky */
sneaky('dev', function () {
this.description = 'Deploy to dev environment'
this.user = 'node4'
this.host = '192.168.0.21'
this.path = '/teambition/server/node4/bingo-third-pusher'
this.filter = `
+ config
+ config/default.json
+ lib**
+ locales**
+ secrets**
+ pm2**
+ app.js
+ package.json
+ npm-shrinkwrap.json
- *
`
this.after([
'yarn --prod',
'pm2 delete bingo-third-pusher || true',
'pm2 start pm2/dev.json'
].join(' && '))
this.overwrite = true
this.nochdir = true
})
sneaky('ga', function () {
this.description = 'Deploy to pre-ga environment'
this.user = 'builder'
this.port = 11122
this.host = 'builder.teambition.corp'
this.path = '/teambition/server/bingo-third-pusher-ga'
this.filter = `
+ config**
+ lib**
+ locales**
+ pm2**
+ app.js
+ package.json
+ yarn.lock
- *
`
this.after([
'npm i --production',
'configd git://git@code.teambition.com:server/configs.git:apps/bingo-third-pusher/ga.json config/default.json'
].join(' && '))
this.overwrite = true
this.nochdir = true
})
sneaky('release', function () {
this.description = 'Deploy to pre-release environment'
this.user = 'builder'
this.port = 11122
this.host = 'builder.teambition.corp'
this.path = '/teambition/server/bingo-third-pusher-release'
this.filter = `
+ config**
+ lib**
+ locales**
+ pm2**
+ app.js
+ package.json
+ yarn.lock
- *
`
this.after([
'npm i --production',
'configd git://git@code.teambition.com:server/configs.git:apps/bingo-third-pusher/release.json config/default.json'
].join(' && '))
this.overwrite = true
this.nochdir = true
})