-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshipitfile.js
More file actions
40 lines (37 loc) · 817 Bytes
/
shipitfile.js
File metadata and controls
40 lines (37 loc) · 817 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
33
34
35
36
37
38
39
40
var pkg = require('./package.json')
var argv = require('yargs').argv
var deploy = require('shipit-deploy')
module.exports = function(shipit) {
deploy(shipit)
shipit.initConfig({
default: {
workspace: './',
dirToCopy: './dist',
deployTo: '/home/deploy/app',
keepReleases: 5,
deleteOnRollback: false,
shallowClone: false,
},
dev: {
servers: [
{
user: 'deploy',
host: 'host',
},
],
},
prod: {
servers: [
{
user: 'deploy',
host: 'host',
},
{
user: 'deploy',
host: 'host',
},
],
},
})
shipit.blTask('deploy', ['deploy:init', 'deploy:update', 'deploy:publish', 'deploy:clean'])
}