Completed
Push — master ( 680841...415925 )
by Antoine
55s
created

shipitfile.js (1 issue)

Severity
1
module.exports = function (shipit) {
2
    require('shipit-deploy')(shipit);
3
    require('shipit-submodule')(shipit);
4
5
    shipit.initConfig({
6
        default: {
7
            workspace: '/tmp/flask-api-starter-kit',
8
            repositoryUrl: '[email protected]:antkahn/flask-api-starter-kit.git',
9
            serviceName: 'application',
10
            hasDatabase: true,
11
            ignores: ['.git', 'node_modules'],
12
            shallowClone: true,
13
            submodules: true,
14
            keepReleases: 3
15
        },
16
        prod: {
17
            servers: [{
18
                host: 'my-first-host.com',
19
                user: 'api'
20
            }, {
21
                host: 'my-first-host.com',
22
                user: 'api'
23
            }],
24
            branch: 'prod',
25
            deployTo: '/my/path/on/server/flask-api-starter-kit',
26
        }
27
    });
28
29
    shipit.on('published', function() {
30
        return shipit.start('install');
31
    });
32
33
    if(shipit.environment.indexOf(['prod'])) {
34
      require('./devops/deploy/prod.js')(shipit);
35
    } else {
36
      console.log("Unknwown environment: " + shipit.environment);
0 ignored issues
show
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
37
      exit(1);
38
    }
39
};
40