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
Remove ray debug statement and refactor random name generator
Andras Bacsai6b5339c1c154
diff --git a/bootstrap/helpers/services.php b/bootstrap/helpers/services.phpindex b9a305a429..43a15444cf 100644--- a/bootstrap/helpers/services.php+++ b/bootstrap/helpers/services.php@@ -126,7 +126,6 @@ function getFilesystemVolumesFromServer(ServiceApplication|ServiceDatabase $oneSfunction updateCompose($resource){try {- ray($resource);$name = data_get($resource, 'name');$dockerComposeRaw = data_get($resource, 'service.docker_compose_raw');$dockerCompose = Yaml::parse($dockerComposeRaw);diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex 013821bd79..ae0f786420 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -27,7 +27,6 @@ use Illuminate\Support\Facades\Mail;use Illuminate\Support\Facades\Route;use Illuminate\Support\Str;use Illuminate\Support\Stringable;-use Nubs\RandomNameGenerator\All;use Poliander\Cron\CronExpression;use Visus\Cuid2\Cuid2;use phpseclib3\Crypt\RSA;@@ -173,7 +172,11 @@ function get_latest_version_of_coolify(): stringfunction generate_random_name(?string $cuid = null): string{- $generator = All::create();+ $generator = new \Nubs\RandomNameGenerator\All(+ [+ new \Nubs\RandomNameGenerator\Alliteration(),+ ]+ );if (is_null($cuid)) {$cuid = new Cuid2(7);}@@ -493,7 +496,8 @@ function queryResourcesByUuid(string $uuid)return $resource;}-function generateDeployWebhook($resource) {+function generateDeployWebhook($resource)+{$baseUrl = base_url();$api = Url::fromString($baseUrl) . '/api/v1';$endpoint = '/deploy';@@ -501,6 +505,7 @@ function generateDeployWebhook($resource) {$url = $api . $endpoint . "?uuid=$uuid&force=false";return $url;}-function removeAnsiColors($text) {+function removeAnsiColors($text)+{return preg_replace('/\e[[][A-Za-z0-9];?[0-9]*m?/', '', $text);}