Skip to content

Commit 6a55962

Browse files
committed
refactor: reload config just before deploy
1 parent 9a56b79 commit 6a55962

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/commands/app/deploy.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const LogForwarding = require('../../lib/log-forwarding')
3030
const { sendAppAssetsDeployedAuditLog, sendAppDeployAuditLog } = require('../../lib/audit-logger')
3131
const { setRuntimeApiHostAndAuthHandler, getAccessToken } = require('../../lib/auth-helper')
3232
const logActions = require('../../lib/log-actions')
33+
const aioConfigLoader = require('@adobe/aio-lib-core-config')
3334

3435
const PRE_DEPLOY_EVENT_REG = 'pre-deploy-event-reg'
3536
const POST_DEPLOY_EVENT_REG = 'post-deploy-event-reg'
@@ -230,6 +231,7 @@ class Deploy extends BuildCommand {
230231
// output should be "Error : <plugin-name> : <error-message>\n" for each failure
231232
this.error(hookResults.failures.map(f => `${f.plugin.name} : ${f.error.message}`).join('\nError: '), { exit: 1 })
232233
}
234+
aioConfigLoader.reload()
233235
deployedRuntimeEntities = await rtLib.deployActions(config, { filterEntities, useForce: flags['force-deploy'] }, onProgress)
234236
}
235237

0 commit comments

Comments
 (0)