mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-23 00:24:15 +02:00
fix: Demo version forms
This commit is contained in:
parent
2719974262
commit
d67a3f51ec
@ -102,7 +102,7 @@
|
|||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
if (browser && window.location.hostname === 'demo.coolify.io' && !application.fqdn) {
|
if (browser && window.location.hostname === 'demo.coolify.io' && !application.fqdn) {
|
||||||
application.fqdn = `http://${cuid()}.demo.coolify.io`;
|
application.fqdn = `http://${cuid()}.demo.coolify.io`;
|
||||||
await post(`/applications/${id}.json`, { ...application });
|
await handleSubmit();
|
||||||
}
|
}
|
||||||
domainEl.focus();
|
domainEl.focus();
|
||||||
await getUsage();
|
await getUsage();
|
||||||
|
@ -72,9 +72,25 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
onMount(async () => {
|
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`;
|
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 = 'noreply@demo.com';
|
||||||
|
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 = 'noreply@demo.com';
|
||||||
|
}
|
||||||
|
await handleSubmit();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user