fix(init): improve error handling for deployment and template pulling processes
This commit is contained in:
parent
5c4a265542
commit
ea5b33b923
1 changed files with 23 additions and 3 deletions
|
|
@ -68,23 +68,43 @@ public function handle()
|
||||||
|
|
||||||
if (isCloud()) {
|
if (isCloud()) {
|
||||||
try {
|
try {
|
||||||
$this->cleanupUnnecessaryDynamicProxyConfiguration();
|
$this->cleanupInProgressApplicationDeployments();
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
echo "Could not cleanup inprogress deployments: {$e->getMessage()}\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
$this->pullTemplatesFromCDN();
|
$this->pullTemplatesFromCDN();
|
||||||
$this->pullChangelogFromGitHub();
|
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
echo "Could not pull templates from CDN: {$e->getMessage()}\n";
|
echo "Could not pull templates from CDN: {$e->getMessage()}\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
$this->pullChangelogFromGitHub();
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
echo "Could not changelogs from github: {$e->getMessage()}\n";
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->cleanupInProgressApplicationDeployments();
|
$this->cleanupInProgressApplicationDeployments();
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
echo "Could not cleanup inprogress deployments: {$e->getMessage()}\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
$this->pullTemplatesFromCDN();
|
$this->pullTemplatesFromCDN();
|
||||||
$this->pullChangelogFromGitHub();
|
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
echo "Could not pull templates from CDN: {$e->getMessage()}\n";
|
echo "Could not pull templates from CDN: {$e->getMessage()}\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
$this->pullChangelogFromGitHub();
|
||||||
|
} catch (\Throwable $e) {
|
||||||
|
echo "Could not changelogs from github: {$e->getMessage()}\n";
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
$localhost = $this->servers->where('id', 0)->first();
|
$localhost = $this->servers->where('id', 0)->first();
|
||||||
$localhost->setupDynamicProxyConfiguration();
|
$localhost->setupDynamicProxyConfiguration();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue