refactor a lot of things
fix: postgres_passwords could be longer feat: able to define postgresql databases from the ui
This commit is contained in:
@@ -150,7 +150,7 @@ class StartPostgresql
|
||||
|
||||
private function generate_init_scripts()
|
||||
{
|
||||
if (count($this->database->init_scripts) === 0) {
|
||||
if (is_null($this->database->init_scripts) || count($this->database->init_scripts) === 0) {
|
||||
return;
|
||||
}
|
||||
foreach ($this->database->init_scripts as $init_script) {
|
||||
|
||||
@@ -18,7 +18,7 @@ class CheckResaleLicense
|
||||
return;
|
||||
}
|
||||
$base_url = config('coolify.license_url');
|
||||
if (isDev()) {
|
||||
if (is_dev()) {
|
||||
$base_url = 'http://host.docker.internal:8787';
|
||||
}
|
||||
$instance_id = config('app.id');
|
||||
|
||||
@@ -17,7 +17,7 @@ class UpdateCoolify
|
||||
$settings = InstanceSettings::get();
|
||||
ray('Running InstanceAutoUpdateJob');
|
||||
$localhost_name = 'localhost';
|
||||
if (isDev()) {
|
||||
if (is_dev()) {
|
||||
$localhost_name = 'testing-local-docker-container';
|
||||
}
|
||||
$this->server = Server::where('name', $localhost_name)->firstOrFail();
|
||||
@@ -52,7 +52,7 @@ class UpdateCoolify
|
||||
|
||||
private function update()
|
||||
{
|
||||
if (isDev()) {
|
||||
if (is_dev()) {
|
||||
ray("Running update on local docker container. Updating to $this->latest_version");
|
||||
remote_process([
|
||||
"sleep 10"
|
||||
|
||||
Reference in New Issue
Block a user