Fix startup
This commit is contained in:
parent
95d8a4b939
commit
b134528883
|
@ -93,6 +93,7 @@ async function initDeployedApp(prodAppId: any) {
|
|||
}
|
||||
|
||||
async function deployApp(deployment: any) {
|
||||
let replication
|
||||
try {
|
||||
const appId = getAppId()
|
||||
const devAppId = getDevelopmentAppID(appId)
|
||||
|
@ -102,7 +103,7 @@ async function deployApp(deployment: any) {
|
|||
source: devAppId,
|
||||
target: productionAppId,
|
||||
}
|
||||
var replication = new Replication(config)
|
||||
replication = new Replication(config)
|
||||
|
||||
console.log("Replication object created")
|
||||
await replication.replicate()
|
||||
|
@ -126,9 +127,11 @@ async function deployApp(deployment: any) {
|
|||
message: `Deployment Failed: ${err.message}`,
|
||||
}
|
||||
} finally {
|
||||
if (replication) {
|
||||
await replication.close()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export async function fetchDeployments(ctx: any) {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue