Merge branch 'v4-next' into patricio-deploy-proxy
This commit is contained in:
@@ -54,6 +54,11 @@ class Form extends Component
|
||||
} catch (\Exception $e) {
|
||||
}
|
||||
}
|
||||
public function delete()
|
||||
{
|
||||
$this->server->delete();
|
||||
redirect()->route('dashboard');
|
||||
}
|
||||
public function submit()
|
||||
{
|
||||
$this->validate();
|
||||
|
||||
@@ -45,6 +45,10 @@ class ByIp extends Component
|
||||
}
|
||||
public function submit()
|
||||
{
|
||||
if (!$this->private_key_id) {
|
||||
$this->addError('private_key_id', 'The private key field is required.');
|
||||
return;
|
||||
}
|
||||
$server = Server::create([
|
||||
'name' => $this->name,
|
||||
'description' => $this->description,
|
||||
|
||||
@@ -16,9 +16,9 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
if (config('app.env') === 'production' && Str::contains(config('coolify.version'), ['nightly'])) {
|
||||
Process::run('php artisan migrate:fresh --force --seed --seeder=ProductionSeeder');
|
||||
}
|
||||
// if (config('app.env') === 'production' && Str::contains(config('coolify.version'), ['nightly'])) {
|
||||
// Process::run('php artisan migrate:fresh --force --seed --seeder=ProductionSeeder');
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,6 +19,7 @@ class FormInput extends Component
|
||||
public string|null $type = 'text',
|
||||
public bool $instantSave = false,
|
||||
public bool $disabled = false,
|
||||
public bool $hidden = false
|
||||
) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user