fix: log.info => console.info
This commit is contained in:
parent
faa2ad2ef5
commit
ab70d8073f
12
deploy.js
12
deploy.js
@ -389,16 +389,16 @@ function deployToGit (connection) {
|
|||||||
.then(function (exist) {
|
.then(function (exist) {
|
||||||
if (exist) return
|
if (exist) return
|
||||||
|
|
||||||
log.info('Setting up Git deployment...')
|
console.info('Setting up Git deployment...')
|
||||||
return setup()
|
return setup()
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
log.info('Clearing .deploy_git folder...')
|
console.info('Clearing .deploy_git folder...')
|
||||||
return fs.emptyDir(deployDir)
|
return fs.emptyDir(deployDir)
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
const opts = {}
|
const opts = {}
|
||||||
log.info('Copying files from local folder...')
|
console.info('Copying files from local folder...')
|
||||||
if (typeof ignoreHidden === 'object') {
|
if (typeof ignoreHidden === 'object') {
|
||||||
opts.ignoreHidden = ignoreHidden.public
|
opts.ignoreHidden = ignoreHidden.public
|
||||||
} else {
|
} else {
|
||||||
@ -419,7 +419,7 @@ function deployToGit (connection) {
|
|||||||
return fs.copyDir(fromDir, deployDir, opts)
|
return fs.copyDir(fromDir, deployDir, opts)
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
log.info('Copying files from extend dirs...')
|
console.info('Copying files from extend dirs...')
|
||||||
|
|
||||||
if (!extendDirs) {
|
if (!extendDirs) {
|
||||||
return
|
return
|
||||||
@ -458,7 +458,7 @@ function deployToGit (connection) {
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
if (connection.cname) {
|
if (connection.cname) {
|
||||||
log.info('Adding CNAME')
|
console.info('Adding CNAME')
|
||||||
return fs.writeFile('CNAME', connection.cname, { flag: 'w' }, err => {
|
return fs.writeFile('CNAME', connection.cname, { flag: 'w' }, err => {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
})
|
})
|
||||||
@ -470,7 +470,7 @@ function deployToGit (connection) {
|
|||||||
})
|
})
|
||||||
.each(function (repo) {
|
.each(function (repo) {
|
||||||
console.log('########## repo ###########')
|
console.log('########## repo ###########')
|
||||||
console.log(repo)
|
console.info(repo)
|
||||||
return push(repo)
|
return push(repo)
|
||||||
})
|
})
|
||||||
} // end of function exec
|
} // end of function exec
|
||||||
|
Loading…
Reference in New Issue
Block a user