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
Update database start commands
Andras Bacsai486de58d5b31
diff --git a/app/Actions/Database/StartDatabaseProxy.php b/app/Actions/Database/StartDatabaseProxy.phpindex 3f6449af2a..500798d301 100644--- a/app/Actions/Database/StartDatabaseProxy.php+++ b/app/Actions/Database/StartDatabaseProxy.php@@ -129,6 +129,7 @@ class StartDatabaseProxy"echo '{$dockerfile_base64}' | base64 -d > $configuration_dir/Dockerfile","echo '{$nginxconf_base64}' | base64 -d > $configuration_dir/nginx.conf","echo '{$dockercompose_base64}' | base64 -d > $configuration_dir/docker-compose.yaml",+ "docker compose --project-directory {$configuration_dir} pull","docker compose --project-directory {$configuration_dir} up --build -d",], $server);}diff --git a/app/Actions/Database/StartMariadb.php b/app/Actions/Database/StartMariadb.phpindex 14110cf9b3..d42b53c09c 100644--- a/app/Actions/Database/StartMariadb.php+++ b/app/Actions/Database/StartMariadb.php@@ -91,6 +91,8 @@ class StartMariadb$this->commands[] = "echo '{$docker_compose_base64}' | base64 -d > $this->configuration_dir/docker-compose.yml";$readme = generate_readme_file($this->database->name, now());$this->commands[] = "echo '{$readme}' > $this->configuration_dir/README.md";+ $this->commands[] = "echo 'Pulling {$database->image} image.'";+ $this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml pull";$this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml up -d";$this->commands[] = "echo '####### {$database->name} started.'";return remote_process($this->commands, $database->destination->server);diff --git a/app/Actions/Database/StartMongodb.php b/app/Actions/Database/StartMongodb.phpindex bc21bf50a2..c1f1b71df4 100644--- a/app/Actions/Database/StartMongodb.php+++ b/app/Actions/Database/StartMongodb.php@@ -107,6 +107,8 @@ class StartMongodb$this->commands[] = "echo '{$docker_compose_base64}' | base64 -d > $this->configuration_dir/docker-compose.yml";$readme = generate_readme_file($this->database->name, now());$this->commands[] = "echo '{$readme}' > $this->configuration_dir/README.md";+ $this->commands[] = "echo 'Pulling {$database->image} image.'";+ $this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml pull";$this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml up -d";$this->commands[] = "echo '####### {$database->name} started.'";return remote_process($this->commands, $database->destination->server);diff --git a/app/Actions/Database/StartMysql.php b/app/Actions/Database/StartMysql.phpindex 103affb899..4cf4282b61 100644--- a/app/Actions/Database/StartMysql.php+++ b/app/Actions/Database/StartMysql.php@@ -91,6 +91,8 @@ class StartMysql$this->commands[] = "echo '{$docker_compose_base64}' | base64 -d > $this->configuration_dir/docker-compose.yml";$readme = generate_readme_file($this->database->name, now());$this->commands[] = "echo '{$readme}' > $this->configuration_dir/README.md";+ $this->commands[] = "echo 'Pulling {$database->image} image.'";+ $this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml pull";$this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml up -d";$this->commands[] = "echo '####### {$database->name} started.'";return remote_process($this->commands, $database->destination->server);diff --git a/app/Actions/Database/StartPostgresql.php b/app/Actions/Database/StartPostgresql.phpindex 6821926be0..6eefd45ffa 100644--- a/app/Actions/Database/StartPostgresql.php+++ b/app/Actions/Database/StartPostgresql.php@@ -116,6 +116,8 @@ class StartPostgresql$this->commands[] = "echo '{$docker_compose_base64}' | base64 -d > $this->configuration_dir/docker-compose.yml";$readme = generate_readme_file($this->database->name, now());$this->commands[] = "echo '{$readme}' > $this->configuration_dir/README.md";+ $this->commands[] = "echo 'Pulling {$database->image} image.'";+ $this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml pull";$this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml up -d";$this->commands[] = "echo '####### {$database->name} started.'";return remote_process($this->commands, $database->destination->server);diff --git a/app/Actions/Database/StartRedis.php b/app/Actions/Database/StartRedis.phpindex 1fe8b463ab..a585678b34 100644--- a/app/Actions/Database/StartRedis.php+++ b/app/Actions/Database/StartRedis.php@@ -101,6 +101,8 @@ class StartRedis$this->commands[] = "echo '{$docker_compose_base64}' | base64 -d > $this->configuration_dir/docker-compose.yml";$readme = generate_readme_file($this->database->name, now());$this->commands[] = "echo '{$readme}' > $this->configuration_dir/README.md";+ $this->commands[] = "echo 'Pulling {$database->image} image.'";+ $this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml pull";$this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml up -d";$this->commands[] = "echo '####### {$database->name} started.'";return remote_process($this->commands, $database->destination->server);diff --git a/config/sentry.php b/config/sentry.phpindex c576a0a381..b2f0653c05 100644--- a/config/sentry.php+++ b/config/sentry.php@@ -7,7 +7,7 @@ return [// The release version of your application// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))- 'release' => '4.0.0-beta.126',+ 'release' => '4.0.0-beta.127',// When left empty or `null` the Laravel environment will be used'environment' => config('app.env'),diff --git a/config/version.php b/config/version.phpindex 6a0ed299c0..7ca7b60141 100644--- a/config/version.php+++ b/config/version.php@@ -1,3 +1,3 @@<?php-return '4.0.0-beta.126';+return '4.0.0-beta.127';diff --git a/versions.json b/versions.jsonindex d0da4d9cdb..10163690ca 100644--- a/versions.json+++ b/versions.json@@ -4,7 +4,8 @@"version": "3.12.36"},"v4": {- "version": "4.0.0-beta.126"+ "version": "4.0.0-beta.127"}}}+