-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshipitfile.js
More file actions
28 lines (27 loc) · 821 Bytes
/
Copy pathshipitfile.js
File metadata and controls
28 lines (27 loc) · 821 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
module.exports = function(shipit) {
require('shipit-deploy')(shipit)
shipit.on('init', () => {
return shipit.local(`mkdir -p ${shipit.config.workspace}`)
})
shipit.initConfig({
default: {
workspace: '/Users/hannah/.shipit',
deployTo: '/var/www/reactivex-talk.techgirlwonder.com',
repositoryUrl: 'git@github.com:hannahhoward/reactivex-talk.git',
ignores: ['.git', 'node_modules'],
keepReleases: 2,
deleteOnRollback: false
},
production: {
servers: 'hannah@159.65.63.108'
}
})
shipit.blTask('build', () => {
return shipit.local('npm install', { cwd: '/Users/hannah/.shipit' }).then(() => {
return shipit.local('npm run build', { cwd: '/Users/hannah/.shipit' })
})
})
shipit.on('fetched', () => {
shipit.start('build')
})
}