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.

debug

Andras Bacsai3cb83e2286c6
diff --git a/apps/api/src/routes/webhooks/traefik/handlers.ts b/apps/api/src/routes/webhooks/traefik/handlers.ts
index c299df237a..e0ba5ad964 100644
--- a/apps/api/src/routes/webhooks/traefik/handlers.ts
+++ b/apps/api/src/routes/webhooks/traefik/handlers.ts
@@ -34,33 +34,36 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =
const { network, id: dockerId } = destinationDocker;
const isRunning = true;
if (buildPack === 'compose') {
+ console.log(dockerComposeConfiguration)
const services = Object.entries(JSON.parse(dockerComposeConfiguration))
- for (const service of services) {
- const [key, value] = service
- if (value.fqdn) {
- const { fqdn } = value
- const domain = getDomain(fqdn);
- const nakedDomain = domain.replace(/^www\./, '');
- const isHttps = fqdn.startsWith('https://');
- const isWWW = fqdn.includes('www.');
- configurableApplications.push({
- id: `${id}-${key}`,
- container: `${id}-${key}`,
- port: value.customPort ? value.customPort : port || 3000,
- domain,
- nakedDomain,
- isRunning,
- isHttps,
- isWWW,
- isDualCerts: dualCerts,
- isCustomSSL,
- pathPrefix: '/'
- });
+ console.log(services)
+ if (services.length > 0) {
+ for (const service of services) {
+ const [key, value] = service
+ if (key && value && value.fqdn) {
+ const { fqdn } = value
+ const domain = getDomain(fqdn);
+ const nakedDomain = domain.replace(/^www\./, '');
+ const isHttps = fqdn.startsWith('https://');
+ const isWWW = fqdn.includes('www.');
+ configurableApplications.push({
+ id: `${id}-${key}`,
+ container: `${id}-${key}`,
+ port: value.customPort ? value.customPort : port || 3000,
+ domain,
+ nakedDomain,
+ isRunning,
+ isHttps,
+ isWWW,
+ isDualCerts: dualCerts,
+ isCustomSSL,
+ pathPrefix: '/'
+ });
+ }
}
}
continue;
}
-
if (fqdn) {
const domain = getDomain(fqdn);
const nakedDomain = domain.replace(/^www\./, '');