deploy_php.js 647 Bytes

'use strict'

const Deploy = require('./deploy');
const {
    DeployInfo,
    Server
} = require('../models');

class DeployPhp extends Deploy {

    constructor(project, building, host) {
        super(project, building, host);

        console.log('===============' + this.host);
    }

    async _getSshInfo() {
        let server = await Server.findByHost(this.host);

        this.server = server;
        console.info(this.host, server);
        return {
            host: server.host,
            username: 'vagrant',
            privateKey: server.privateKey,
            port: server.port
        };
    }
}

module.exports = DeployPhp;