Update database start commands
This commit is contained in:
		@@ -107,7 +107,7 @@ class StartMariadb
 | 
				
			|||||||
        $this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml pull";
 | 
					        $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[] = "docker compose -f $this->configuration_dir/docker-compose.yml up -d";
 | 
				
			||||||
        $database_name = addslashes($database->name);
 | 
					        $database_name = addslashes($database->name);
 | 
				
			||||||
        $this->commands[] = "echo '{$database_name} started.'";
 | 
					        $this->commands[] = "echo 'Database started.'";
 | 
				
			||||||
        return remote_process($this->commands, $database->destination->server, callEventOnFinish: 'DatabaseStatusChanged');
 | 
					        return remote_process($this->commands, $database->destination->server, callEventOnFinish: 'DatabaseStatusChanged');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -123,7 +123,7 @@ class StartMongodb
 | 
				
			|||||||
        $this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml pull";
 | 
					        $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[] = "docker compose -f $this->configuration_dir/docker-compose.yml up -d";
 | 
				
			||||||
        $database_name = addslashes($database->name);
 | 
					        $database_name = addslashes($database->name);
 | 
				
			||||||
        $this->commands[] = "echo '{$database_name} started.'";
 | 
					        $this->commands[] = "echo 'Database started.'";
 | 
				
			||||||
        return remote_process($this->commands, $database->destination->server, callEventOnFinish: 'DatabaseStatusChanged');
 | 
					        return remote_process($this->commands, $database->destination->server, callEventOnFinish: 'DatabaseStatusChanged');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -107,7 +107,7 @@ class StartMysql
 | 
				
			|||||||
        $this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml pull";
 | 
					        $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[] = "docker compose -f $this->configuration_dir/docker-compose.yml up -d";
 | 
				
			||||||
        $database_name = addslashes($database->name);
 | 
					        $database_name = addslashes($database->name);
 | 
				
			||||||
        $this->commands[] = "echo '{$database_name} started.'";
 | 
					        $this->commands[] = "echo 'Database started.'";
 | 
				
			||||||
        return remote_process($this->commands, $database->destination->server,callEventOnFinish: 'DatabaseStatusChanged');
 | 
					        return remote_process($this->commands, $database->destination->server,callEventOnFinish: 'DatabaseStatusChanged');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -129,7 +129,7 @@ class StartPostgresql
 | 
				
			|||||||
        $this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml pull";
 | 
					        $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[] = "docker compose -f $this->configuration_dir/docker-compose.yml up -d";
 | 
				
			||||||
        $database_name = addslashes($database->name);
 | 
					        $database_name = addslashes($database->name);
 | 
				
			||||||
        $this->commands[] = "echo '{$database_name} started.'";
 | 
					        $this->commands[] = "echo 'Database started.'";
 | 
				
			||||||
        return remote_process($this->commands, $database->destination->server, callEventOnFinish: 'DatabaseStatusChanged');
 | 
					        return remote_process($this->commands, $database->destination->server, callEventOnFinish: 'DatabaseStatusChanged');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -118,7 +118,7 @@ class StartRedis
 | 
				
			|||||||
        $this->commands[] = "docker compose -f $this->configuration_dir/docker-compose.yml pull";
 | 
					        $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[] = "docker compose -f $this->configuration_dir/docker-compose.yml up -d";
 | 
				
			||||||
        $database_name = addslashes($database->name);
 | 
					        $database_name = addslashes($database->name);
 | 
				
			||||||
        $this->commands[] = "echo '{$database_name} started.'";
 | 
					        $this->commands[] = "echo 'Database started.'";
 | 
				
			||||||
        return remote_process($this->commands, $database->destination->server, callEventOnFinish: 'DatabaseStatusChanged');
 | 
					        return remote_process($this->commands, $database->destination->server, callEventOnFinish: 'DatabaseStatusChanged');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -21,7 +21,7 @@ class StartService
 | 
				
			|||||||
        $commands[] = "echo 'Saved configuration files to {$service->workdir()}.'";
 | 
					        $commands[] = "echo 'Saved configuration files to {$service->workdir()}.'";
 | 
				
			||||||
        $commands[] = "echo 'Creating Docker network.'";
 | 
					        $commands[] = "echo 'Creating Docker network.'";
 | 
				
			||||||
        $commands[] = "docker network inspect $service->uuid >/dev/null 2>&1 || docker network create --attachable $service->uuid >/dev/null 2>&1 || true";
 | 
					        $commands[] = "docker network inspect $service->uuid >/dev/null 2>&1 || docker network create --attachable $service->uuid >/dev/null 2>&1 || true";
 | 
				
			||||||
        $commands[] = "echo Starting service $service_name on $server_name.";
 | 
					        $commands[] = "echo Starting service.";
 | 
				
			||||||
        $commands[] = "echo 'Pulling images.'";
 | 
					        $commands[] = "echo 'Pulling images.'";
 | 
				
			||||||
        $commands[] = "docker compose pull";
 | 
					        $commands[] = "docker compose pull";
 | 
				
			||||||
        $commands[] = "echo 'Starting containers.'";
 | 
					        $commands[] = "echo 'Starting containers.'";
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,7 +7,7 @@ return [
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    // The release version of your application
 | 
					    // The release version of your application
 | 
				
			||||||
    // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
 | 
					    // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
 | 
				
			||||||
    'release' => '4.0.0-beta.210',
 | 
					    'release' => '4.0.0-beta.211',
 | 
				
			||||||
    // When left empty or `null` the Laravel environment will be used
 | 
					    // When left empty or `null` the Laravel environment will be used
 | 
				
			||||||
    'environment' => config('app.env'),
 | 
					    'environment' => config('app.env'),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,3 +1,3 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
return '4.0.0-beta.210';
 | 
					return '4.0.0-beta.211';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,7 +4,7 @@
 | 
				
			|||||||
            "version": "3.12.36"
 | 
					            "version": "3.12.36"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        "v4": {
 | 
					        "v4": {
 | 
				
			||||||
            "version": "4.0.0-beta.210"
 | 
					            "version": "4.0.0-beta.211"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user