-
Notifications
You must be signed in to change notification settings - Fork 0
/
shipitfile.js
70 lines (61 loc) · 1.38 KB
/
shipitfile.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
'use strict';
module.exports = function (shipit) {
require('shipit-deploy')(shipit);
require('shipit-shared')(shipit);
require('shipit-nvm')(shipit);
//require('shipit-npm')(shipit);
shipit.initConfig({
default: {
// **LOCAL** workspace do put stuff
// cleaned as the 1st step
workspace: '/home/yej/work/tmp/shipit-workspace',
// project repository. Will be cloned into 'workspace'
repositoryUrl: 'https://github.com/Offirmo/online-adventur.es.git',
//branch : default to master
// distant server deploy dir
// should contain a "releases" dir
deployTo: '/home/yej/work/tmp/shipit-deploy-to',
// ???
ignores: [ // default empty
// '.git',
// 'node_modules'
],
//keepReleases: 2,
//deleteOnRollback: false,
//shallowClone: false
// shipit-nvm
// will set nvm alias to .nvmrc
nvm: {
remote: true,
sh: '~/.nvm/nvm.sh'
},
// shipit-npm
/*npm: {
remote: true,
triggerEvent: 'nvm_alias_complete',
installArgs: ['npm-pkgr'],
installFlags: ['-g']
}*/
},
local: {
servers: [{
host: 'localhost',
user: 'offirmo'
}],
// shipit-shared
shared: {
overwrite: true,
files: [
{
// relative to current dir !
path: '.env',
basePath: '/home/offirmo/work/tmp/.env'
}
],
}
}
});
shipit.task('pwd', function () {
return shipit.remote('pwd');
});
};