Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: turn off autodeploy for simpledockerfiles

Andras Bacsaiad4b97427478
diff --git a/apps/api/src/routes/api/v1/applications/handlers.ts b/apps/api/src/routes/api/v1/applications/handlers.ts
index 8ec35fb2fa..038f4ba6bf 100644
--- a/apps/api/src/routes/api/v1/applications/handlers.ts
+++ b/apps/api/src/routes/api/v1/applications/handlers.ts
@@ -859,7 +859,7 @@ export async function saveApplicationSource(request: FastifyRequest<SaveApplicat
if (simpleDockerfile) {
await prisma.application.update({
where: { id },
- data: { simpleDockerfile }
+ data: { simpleDockerfile, settings: { update: { autodeploy: false } } }
});
}
diff --git a/apps/ui/src/routes/applications/[id]/_Menu.svelte b/apps/ui/src/routes/applications/[id]/_Menu.svelte
index f2dc5c47aa..0403e8aad4 100644
--- a/apps/ui/src/routes/applications/[id]/_Menu.svelte
+++ b/apps/ui/src/routes/applications/[id]/_Menu.svelte
@@ -135,26 +135,28 @@
</svg>Persistent Volumes</a
>
</li>
- <li
- class="rounded"
- class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/features`}
- >
- <a href={`/applications/${$page.params.id}/features`} class="no-underline w-full"
- ><svg
- xmlns="http://www.w3.org/2000/svg"
- class="w-6 h-6"
- viewBox="0 0 24 24"
- stroke-width="1.5"
- stroke="currentColor"
- fill="none"
- stroke-linecap="round"
- stroke-linejoin="round"
- >
- <path stroke="none" d="M0 0h24v24H0z" fill="none" />
- <polyline points="13 3 13 10 19 10 11 21 11 14 5 14 13 3" />
- </svg>Features</a
+ {#if !application.simpleDockerfile}
+ <li
+ class="rounded"
+ class:bg-coollabs={$page.url.pathname === `/applications/${$page.params.id}/features`}
>
- </li>
+ <a href={`/applications/${$page.params.id}/features`} class="no-underline w-full"
+ ><svg
+ xmlns="http://www.w3.org/2000/svg"
+ class="w-6 h-6"
+ viewBox="0 0 24 24"
+ stroke-width="1.5"
+ stroke="currentColor"
+ fill="none"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ >
+ <path stroke="none" d="M0 0h24v24H0z" fill="none" />
+ <polyline points="13 3 13 10 19 10 11 21 11 14 5 14 13 3" />
+ </svg>Features</a
+ >
+ </li>
+ {/if}
<li class="menu-title">
<span>Logs</span>