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
Andras Bacsaiaec37164de7e
diff --git a/apps/api/src/lib.ts b/apps/api/src/lib.tsindex 6752745a02..2c240c697d 100644--- a/apps/api/src/lib.ts+++ b/apps/api/src/lib.ts@@ -81,6 +81,7 @@ export async function migrateServicesToNewTemplate() {}if (variable.id.startsWith('$$config_')) {const found = await prisma.serviceSetting.findFirst({ where: { name: variable.name, serviceId: id } })+ console.log({variableNameAtConfig: variable.id})if (!found) {await prisma.serviceSetting.create({data: { name: variable.name, value: variable.value.toString(), variableName: variable.id, service: { connect: { id } } }@@ -411,6 +412,7 @@ async function migrateSettings(settings: any[], service: any, template: any) {}// console.log('Migrating setting', name, value, 'for service', service.id, ', service name:', service.name)const variableName = template.variables.find((v: any) => v.name === name)?.id+ console.log({variableName})await prisma.serviceSetting.findFirst({ where: { name, serviceId: service.id } }) || await prisma.serviceSetting.create({ data: { name, value, variableName, service: { connect: { id: service.id } } } })}}