This commit is contained in:
Andras Bacsai 2023-05-09 15:10:32 +02:00
parent e69040c799
commit 112082b643
3 changed files with 9 additions and 4 deletions

View File

@ -22,7 +22,7 @@ public function submit()
}
public function delete()
{
instantRemoteProcess(['docker network rm -f ' . $this->destination->network], $this->destination->server);
// instantRemoteProcess(['docker network rm -f ' . $this->destination->network], $this->destination->server);
$this->destination->delete();
return redirect()->route('dashboard');
}

View File

@ -98,8 +98,12 @@ public function loadBranches()
}
public function loadServers()
{
$this->servers = Server::validated();
$this->selected_server_id = $this->servers[0]['id'];
try {
$this->servers = Server::validated();
$this->selected_server_id = $this->servers[0]['id'];
} catch (\Exception $e) {
return generalErrorHandler($e);
}
}
public function loadDestinations()
{

View File

@ -35,7 +35,8 @@ function reset-db {
bash vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --seed
}
function reset-db-production {
bash vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --force --seed --seeder=ProductionSeeder
bash vendor/bin/spin exec -u webuser coolify php artisan migrate:fresh --force --seed --seeder=ProductionSeeder ||
php artisan migrate:fresh --force --seed --seeder=ProductionSeeder
}
function coolify {
bash vendor/bin/spin exec -u webuser coolify bash