-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshipitfile.js
More file actions
28 lines (26 loc) · 821 Bytes
/
Copy pathshipitfile.js
File metadata and controls
28 lines (26 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.initConfig({
default: {
workspace: '/tmp/browgine',
deployTo: '/opt/browgine',
repositoryUrl: 'https://github.com/hegrec/browgine.git',
ignores: ['.git', 'node_modules'],
keepReleases: 3
},
staging: {
servers: 'mealtrap.com'
},
production: {
servers: 'nodeapps@immown.com'
}
});
shipit.on('published', function() {
shipit.remote('cd /opt/browgine/current && npm install && grunt').then(function(res) {
shipit.log(res);
shipit.remote('pm2 restart browgine').then(function(res) {
shipit.log(res);
});
});
})
};