Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

save

Andras Bacsaibb435b082ec0
diff --git a/app/Http/Livewire/DeployApplication.php b/app/Http/Livewire/DeployApplication.php
index 14401a1fc3..342e2e2f3d 100644
--- a/app/Http/Livewire/DeployApplication.php
+++ b/app/Http/Livewire/DeployApplication.php
@@ -41,11 +41,11 @@ class DeployApplication extends Component
}
private function execute_in_builder(string $command)
{
- if ($this->application->settings->is_debug) {
- return $this->command[] = "docker exec {$this->deployment_uuid} bash -c '{$command}'";
- } else {
- return $this->command[] = "docker exec {$this->deployment_uuid} bash -c '{$command}' > /dev/null 2>&1";
- }
+ return $this->command[] = "docker exec {$this->deployment_uuid} bash -c '{$command}'";
+ // if ($this->application->settings->is_debug) {
+ // } else {
+ // return $this->command[] = "docker exec {$this->deployment_uuid} bash -c '{$command}'";
+ // }
}
private function start_builder_container()
{
@@ -247,10 +247,9 @@ class DeployApplication extends Component
public function stop()
{
- $output = runRemoteCommandSync($this->destination->server, ["docker rm -f {$this->application_uuid} >/dev/null 2>&1"]);
+ runRemoteCommandSync($this->destination->server, ["docker rm -f {$this->application_uuid} >/dev/null 2>&1"]);
$this->application->status = 'exited';
$this->application->save();
- // $this->application->refresh();
}
public function pollingStatus()
{
diff --git a/docker/builder/Dockerfile b/docker/builder/Dockerfile
index 32099603b7..bbeca59b1b 100644
--- a/docker/builder/Dockerfile
+++ b/docker/builder/Dockerfile
@@ -22,5 +22,5 @@ RUN curl -sSL https://nixpacks.com/install.sh | bash
RUN chmod +x ~/.docker/cli-plugins/docker-compose /usr/bin/docker /usr/local/bin/pack
ENTRYPOINT ["/sbin/tini", "--"]
-CMD ["sh", "-c", "while true; do sleep 1000; done"]
+CMD ["sh", "-c", "while true; do sleep 69420; done"]
diff --git a/resources/views/livewire/poll-activity.blade.php b/resources/views/livewire/poll-activity.blade.php
index 8c69b96de9..389483dc14 100644
--- a/resources/views/livewire/poll-activity.blade.php
+++ b/resources/views/livewire/poll-activity.blade.php
@@ -1,5 +1,6 @@
<div>
@isset($activity?->id)
- <pre style="width: 100%;overflow-y: scroll;" @if ($isKeepAliveOn) wire:poll.750ms="polling" @endif>{{ data_get($activity, 'description') ?? 'Logs will be here soon...' }}</pre>
+ <pre style="width: 100%;overflow-y: scroll;" @if ($isKeepAliveOn) wire:poll.750ms="polling" @endif>{{ data_get($activity, 'description') }}</pre>
@endisset
+ {{-- <pre style="width: 100%;overflow-y: scroll;">{{ data_get($activity, 'properties') }}</pre> --}}
</div>