project.js 800 Bytes
import Model from './model';

class Project extends Model {

    constructor() {
        super('projects');
    }

    findByName(name) {
        return this.findOne({
            name: name
        });
    }

    _seeds() {
        return [{
            name: 'yoho-node-ci',
            gitlab: 'http://git.dev.yoho.cn/opentech/yoho-node-ci.git',
            scripts: {
                build: 'npm install',
                start: 'pm2 startOrReload process.json'
            },
            deploy: {
                test: {
                    target: ['192.168.102.168', '192.168.102.162'],
                    domain: "http://192.168.0.1:6001/",
                    branchName: 'master'
                },
                production: {}
            }
        }];
    }
}

export default Project;