Merge pull request #1479 from coollabsio/next
v4.0.0-beta.146 - quick fix before release
This commit is contained in:
commit
7f69eb3c2e
@ -23,7 +23,7 @@ class Advanced extends Component
|
|||||||
];
|
];
|
||||||
public function instantSave()
|
public function instantSave()
|
||||||
{
|
{
|
||||||
if ($this->application->settings->is_log_drain_enabled) {
|
if ($this->application->isLogDrainEnabled()) {
|
||||||
if (!$this->application->destination->server->isLogDrainEnabled()) {
|
if (!$this->application->destination->server->isLogDrainEnabled()) {
|
||||||
$this->application->settings->is_log_drain_enabled = false;
|
$this->application->settings->is_log_drain_enabled = false;
|
||||||
$this->emit('error', 'Log drain is not enabled on this server.');
|
$this->emit('error', 'Log drain is not enabled on this server.');
|
||||||
|
@ -28,7 +28,12 @@ public function instantSave()
|
|||||||
}
|
}
|
||||||
public function instantSaveAdvanced()
|
public function instantSaveAdvanced()
|
||||||
{
|
{
|
||||||
$this->submit();
|
if (!$this->application->service->destination->server->isLogDrainEnabled()) {
|
||||||
|
$this->application->is_log_drain_enabled = false;
|
||||||
|
$this->emit('error', 'Log drain is not enabled on the server. Please enable it first.');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$this->application->save();
|
||||||
$this->emit('success', 'You need to restart the service for the changes to take effect.');
|
$this->emit('success', 'You need to restart the service for the changes to take effect.');
|
||||||
}
|
}
|
||||||
public function delete()
|
public function delete()
|
||||||
@ -49,11 +54,6 @@ public function submit()
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->validate();
|
$this->validate();
|
||||||
if (!$this->application->service->destination->server->isLogDrainEnabled()) {
|
|
||||||
$this->application->is_log_drain_enabled = false;
|
|
||||||
$this->emit('error', 'Log drain is not enabled on the server. Please enable it first.');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$this->application->save();
|
$this->application->save();
|
||||||
updateCompose($this->application);
|
updateCompose($this->application);
|
||||||
$this->emit('success', 'Application saved successfully.');
|
$this->emit('success', 'Application saved successfully.');
|
||||||
|
@ -219,7 +219,7 @@ public function handle(): void
|
|||||||
if ($this->server->isProxyShouldRun()) {
|
if ($this->server->isProxyShouldRun()) {
|
||||||
dispatch(new ContainerStatusJob($this->server));
|
dispatch(new ContainerStatusJob($this->server));
|
||||||
}
|
}
|
||||||
if ($this->application->docker_registry_image_name) {
|
if ($this->application->docker_registry_image_name && $this->application->build_pack !== 'dockerimage') {
|
||||||
$this->push_to_docker_registry();
|
$this->push_to_docker_registry();
|
||||||
}
|
}
|
||||||
$this->next(ApplicationDeploymentStatus::FINISHED->value);
|
$this->next(ApplicationDeploymentStatus::FINISHED->value);
|
||||||
|
Loading…
Reference in New Issue
Block a user