|
@ -212,7 +212,7 @@ async function sync (token) { |
|
|
} else if (hasPackage) { |
|
|
} else if (hasPackage) { |
|
|
if (debug) console.log('[debug] `package.json` found, assuming `deploymentType` = `npm`'); |
|
|
if (debug) console.log('[debug] `package.json` found, assuming `deploymentType` = `npm`'); |
|
|
deploymentType = 'npm'; |
|
|
deploymentType = 'npm'; |
|
|
} else if (hasDockerFile) { |
|
|
} else if (hasDockerfile) { |
|
|
if (debug) console.log('[debug] `Dockerfile` found, assuming `deploymentType` = `docker`'); |
|
|
if (debug) console.log('[debug] `Dockerfile` found, assuming `deploymentType` = `docker`'); |
|
|
deploymentType = 'docker'; |
|
|
deploymentType = 'docker'; |
|
|
} else { |
|
|
} else { |
|
@ -314,9 +314,6 @@ async function sync (token) { |
|
|
function printLogs (host) { |
|
|
function printLogs (host) { |
|
|
// log build |
|
|
// log build |
|
|
const logger = new Logger(host, { debug, quiet }); |
|
|
const logger = new Logger(host, { debug, quiet }); |
|
|
logger.on('error', () => { |
|
|
|
|
|
process.exit(1); |
|
|
|
|
|
}); |
|
|
|
|
|
logger.on('close', () => { |
|
|
logger.on('close', () => { |
|
|
if (!quiet) { |
|
|
if (!quiet) { |
|
|
console.log(`${chalk.cyan('> Deployment complete!')}`); |
|
|
console.log(`${chalk.cyan('> Deployment complete!')}`); |
|
|