deploy_php.js
635 Bytes
'use strict'
import Deploy from './deploy';
import {
DeployInfo,
Server
} from '../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
};
}
}
export default DeployPhp;