Reordered installation steps

This commit is contained in:
Kasra Bigdeli
2019-08-03 16:30:44 -04:00
parent cdcf2a51f5
commit bf605dcd9b
+3 -3
View File
@@ -264,9 +264,6 @@ export function install() {
.then(function() {
return checkPortOrThrow(myIp4, 3000)
})
.then(function() {
return backupManger.checkAndPrepareRestoration()
})
.then(function() {
const imageName = CaptainConstants.configs.nginxImageName
console.log('Pulling: ' + imageName)
@@ -277,6 +274,9 @@ export function install() {
console.log('Pulling: ' + imageName)
return DockerApi.get().pullImage(imageName, undefined)
})
.then(function() {
return backupManger.checkAndPrepareRestoration()
})
.then(function() {
return DockerApi.get().initSwarm(myIp4)
})