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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
debug on
Andras Bacsai5305bc1ceb08
diff --git a/apps/api/src/routes/api/v1/destinations/handlers.ts b/apps/api/src/routes/api/v1/destinations/handlers.tsindex effd1e8f00..8b0bb5fc82 100644--- a/apps/api/src/routes/api/v1/destinations/handlers.ts+++ b/apps/api/src/routes/api/v1/destinations/handlers.ts@@ -212,21 +212,25 @@ export async function verifyRemoteDockerEngine(request: FastifyRequest<OnlyId>,const { remoteIpAddress, remoteUser, network, isCoolifyProxyUsed } = await prisma.destinationDocker.findFirst({ where: { id } })const host = `ssh://${remoteUser}@${remoteIpAddress}`+ console.log({ host })const { stdout } = await asyncExecShell(`DOCKER_HOST=${host} docker network ls --filter 'name=${network}' --no-trunc --format "{{json .}}"`);-+ console.log({ stdout })if (!stdout) {await asyncExecShell(`DOCKER_HOST=${host} docker network create --attachable ${network}`);}const { stdout: coolifyNetwork } = await asyncExecShell(`DOCKER_HOST=${host} docker network ls --filter 'name=coolify-infra' --no-trunc --format "{{json .}}"`);+ console.log({ coolifyNetwork })if (!coolifyNetwork) {await asyncExecShell(`DOCKER_HOST=${host} docker network create --attachable coolify-infra`);}+ console.log({ isCoolifyProxyUsed })if (isCoolifyProxyUsed) await startTraefikProxy(id);await prisma.destinationDocker.update({ where: { id }, data: { remoteVerified: true } })return reply.code(201).send()} catch ({ status, message }) {+ console.log({ status, message })return errorHandler({ status, message })}}