diff --git a/packages/builder/src/components/deploy/DeploymentHistory.svelte b/packages/builder/src/components/deploy/DeploymentHistory.svelte index 417423a985..05a2e40fa6 100644 --- a/packages/builder/src/components/deploy/DeploymentHistory.svelte +++ b/packages/builder/src/components/deploy/DeploymentHistory.svelte @@ -44,6 +44,7 @@ } onMount(() => { + fetchDeployments() poll = setInterval(fetchDeployments, POLL_INTERVAL) }) @@ -55,10 +56,12 @@

Deployment History

- - View Your Deployed App → - - + {#if deployments.some(deployment => deployment.status === 'SUCCESS')} + + View Your Deployed App → + + + {/if}
diff --git a/packages/builder/src/pages/[application]/deploy/index.svelte b/packages/builder/src/pages/[application]/deploy/index.svelte index 0563c4e2cc..462601ff48 100644 --- a/packages/builder/src/pages/[application]/deploy/index.svelte +++ b/packages/builder/src/pages/[application]/deploy/index.svelte @@ -17,19 +17,16 @@ $: appId = $store.appId async function deployApp() { - loading = true const DEPLOY_URL = `/api/deploy` try { - notifier.info("Starting Deployment..") + notifier.info(`Deployment started. Please wait.`) const response = await api.post(DEPLOY_URL) const json = await response.json() if (response.status !== 200) { throw new Error() } - notifier.info(`Deployment started. Please wait.`) - loading = false analytics.captureEvent("Deployed App", { appId, }) @@ -43,7 +40,6 @@ }) analytics.captureException(err) notifier.danger("Deployment unsuccessful. Please try again later.") - loading = false } } @@ -51,13 +47,7 @@

It's time to shine!

- +
{ } }) +router.get("/health", ctx => (ctx.status = 200)) + router.use(authRoutes.routes()) router.use(authRoutes.allowedMethods())