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
fix: Demo version forms
Andras Bacsaid67a3f51ece9
diff --git a/src/routes/applications/[id]/index.svelte b/src/routes/applications/[id]/index.svelteindex 78fa72dff0..a00f08d2fc 100644--- a/src/routes/applications/[id]/index.svelte+++ b/src/routes/applications/[id]/index.svelte@@ -102,7 +102,7 @@onMount(async () => {if (browser && window.location.hostname === 'demo.coolify.io' && !application.fqdn) {application.fqdn = `http://${cuid()}.demo.coolify.io`;- await post(`/applications/${id}.json`, { ...application });+ await handleSubmit();}domainEl.focus();await getUsage();diff --git a/src/routes/services/[id]/_Services/_Services.svelte b/src/routes/services/[id]/_Services/_Services.svelteindex 062292c4dc..95e0f914d8 100644--- a/src/routes/services/[id]/_Services/_Services.svelte+++ b/src/routes/services/[id]/_Services/_Services.svelte@@ -72,9 +72,25 @@}}onMount(async () => {- if (browser && window.location.hostname === 'demo.coolify.io' && !service.fqdn) {+ if (browser && window.location.hostname === 'localhost' && !service.fqdn) {service.fqdn = `http://${cuid()}.demo.coolify.io`;- await post(`/services/${id}/${service.type}.json`, { ...service });+ if (service.type === 'wordpress') {+ service.wordpress.mysqlDatabase = 'db';+ }+ if (service.type === 'plausibleanalytics') {+ service.plausibleAnalytics.email = '[email protected]';+ service.plausibleAnalytics.username = 'admin';+ }+ if (service.type === 'minio') {+ service.minio.apiFqdn = `http://${cuid()}.demo.coolify.io`;+ }+ if (service.type === 'ghost') {+ service.ghost.mariadbDatabase = 'db';+ }+ if (service.type === 'fider') {+ service.fider.emailNoreply = '[email protected]';+ }+ await handleSubmit();}});</script>