save
This commit is contained in:
parent
e052047b04
commit
bb435b082e
@ -41,11 +41,11 @@ public function render()
|
||||
}
|
||||
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 @@ public function deploy()
|
||||
|
||||
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()
|
||||
{
|
||||
|
@ -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"]
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user