mirror of
https://github.com/caprover/caprover
synced 2026-09-23 15:15:36 +00:00
Bugfix for ordering of migration
This commit is contained in:
@@ -248,22 +248,7 @@ export default class MigrateCaptainDuckDuck {
|
||||
repoInfo.repo = extracted.repo
|
||||
}
|
||||
|
||||
return appStore
|
||||
.updateAppDefinitionInDb(
|
||||
appName,
|
||||
Number(app.instanceCount),
|
||||
app.envVars || [],
|
||||
app.volumes || [],
|
||||
app.nodeId || '',
|
||||
!!app.notExposeAsWebApp,
|
||||
80,
|
||||
!!app.forceSsl,
|
||||
app.ports || [],
|
||||
repoInfo,
|
||||
self.authenticator,
|
||||
app.customNginxConfig,
|
||||
app.preDeployFunction
|
||||
)
|
||||
return Promise.resolve()
|
||||
.then(function() {
|
||||
const customDomains = app.customDomain || []
|
||||
const hasDefaultSubDomainSsl = !!app.hasDefaultSubDomainSsl
|
||||
@@ -332,6 +317,23 @@ export default class MigrateCaptainDuckDuck {
|
||||
deployedVersion
|
||||
)
|
||||
})
|
||||
.then(function() {
|
||||
return appStore.updateAppDefinitionInDb(
|
||||
appName,
|
||||
Number(app.instanceCount),
|
||||
app.envVars || [],
|
||||
app.volumes || [],
|
||||
app.nodeId || '',
|
||||
!!app.notExposeAsWebApp,
|
||||
80,
|
||||
!!app.forceSsl,
|
||||
app.ports || [],
|
||||
repoInfo,
|
||||
self.authenticator,
|
||||
app.customNginxConfig,
|
||||
app.preDeployFunction
|
||||
)
|
||||
})
|
||||
})
|
||||
promises.push(p)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user