Skip to content

Commit

Permalink
Make deployment verbose.
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel committed Sep 20, 2017
1 parent 1d42a3d commit 54f3ffe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion openwhisk/compiler/src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const deployMain = async () => {
ow: ow,
manifest: deployConfig,
cache: '..',
force: true
force: true,
logger_level: 'INFO'
})
} catch (err) {
console.error('Deployment failed')
Expand Down
9 changes: 5 additions & 4 deletions openwhisk/compiler/src/undeploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ const undeployMain = async () => {
const deployConfig = require('./actions').config()

// Deploy
console.log('### Deploy on OpenWhisk ###')
console.log('### Undeploy OpenWhisk actions ###')
const ow = owDeployer.auth.initWsk()
try {
await owDeployer.undeploy.apply({
ow: ow,
manifest: deployConfig,
force: true
force: true,
logger_level: 'INFO'
})
} catch (err) { }
} catch (err) {
console.error('Deployment failed')
console.error('Undeployment failed')
console.error(err)
process.exit(1)
}
Expand All @@ -29,7 +30,7 @@ const sleep = (time) => {
undeployMain().then(() => {
sleep(500) // XXX Hack!
}).then(() => {
console.log('Deployment done!')
console.log('Undeployment done!')
})

export { }

0 comments on commit 54f3ffe

Please sign in to comment.