It's working!

This commit is contained in:
Andras Bacsai 2021-06-22 12:12:11 +02:00
parent c09b8d888f
commit 425feba0e2
2 changed files with 1 additions and 2 deletions

View File

@ -160,7 +160,6 @@ export async function post(request: Request) {
}, },
}; };
} }
console.log(stack)
await execShellAsync(`mkdir -p ${workdir}`); await execShellAsync(`mkdir -p ${workdir}`);
await fs.writeFile(`${workdir}/stack.yml`, yaml.dump(stack)); await fs.writeFile(`${workdir}/stack.yml`, yaml.dump(stack));
await execShellAsync(`docker stack rm ${deployId}`); await execShellAsync(`docker stack rm ${deployId}`);

View File

@ -42,6 +42,7 @@
}); });
toast.push(message); toast.push(message);
setTimeout(() => { setTimeout(() => {
// WHY need to navigate to / to get cookies?!
browser && window.location.replace('/') browser && window.location.replace('/')
}, 1000); }, 1000);
} catch (error) { } catch (error) {
@ -68,7 +69,6 @@
<Loading fullscreen={false} /> <Loading fullscreen={false} />
{:else} {:else}
<div class="text-center py-10 max-w-7xl"> <div class="text-center py-10 max-w-7xl">
{$session.isLoggedIn}
{#if !$session.isLoggedIn} {#if !$session.isLoggedIn}
{#if $settings.clientId} {#if $settings.clientId}
<button <button