debug
This commit is contained in:
parent
780d03e5e1
commit
3cb83e2286
1 changed files with 25 additions and 22 deletions
|
|
@ -34,10 +34,13 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =
|
||||||
const { network, id: dockerId } = destinationDocker;
|
const { network, id: dockerId } = destinationDocker;
|
||||||
const isRunning = true;
|
const isRunning = true;
|
||||||
if (buildPack === 'compose') {
|
if (buildPack === 'compose') {
|
||||||
|
console.log(dockerComposeConfiguration)
|
||||||
const services = Object.entries(JSON.parse(dockerComposeConfiguration))
|
const services = Object.entries(JSON.parse(dockerComposeConfiguration))
|
||||||
|
console.log(services)
|
||||||
|
if (services.length > 0) {
|
||||||
for (const service of services) {
|
for (const service of services) {
|
||||||
const [key, value] = service
|
const [key, value] = service
|
||||||
if (value.fqdn) {
|
if (key && value && value.fqdn) {
|
||||||
const { fqdn } = value
|
const { fqdn } = value
|
||||||
const domain = getDomain(fqdn);
|
const domain = getDomain(fqdn);
|
||||||
const nakedDomain = domain.replace(/^www\./, '');
|
const nakedDomain = domain.replace(/^www\./, '');
|
||||||
|
|
@ -58,9 +61,9 @@ async function applicationConfiguration(traefik: any, remoteId: string | null =
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fqdn) {
|
if (fqdn) {
|
||||||
const domain = getDomain(fqdn);
|
const domain = getDomain(fqdn);
|
||||||
const nakedDomain = domain.replace(/^www\./, '');
|
const nakedDomain = domain.replace(/^www\./, '');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue