Skip to content

Commit

Permalink
fix: #51 self-hosted configurator
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Sep 15, 2024
1 parent 0a1fb42 commit ca15de3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/Actions/Nodes/InitCluster.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,14 @@ private function getCaddyProcessConfig(Node $node): array
'command' => null,
],
'command' => 'sh /start.sh',
'healthcheck' => [
'command' => null,
'interval' => 10,
'timeout' => 5,
'retries' => 3,
'startPeriod' => 30,
'startInterval' => 5,
],
'backups' => [],
'workers' => [],
'envVars' => [
Expand Down
24 changes: 24 additions & 0 deletions app/Console/Commands/SelfHostPtah.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ public function handle()
'command' => null,
],
'command' => null,
'healthcheck' => [
'command' => null,
'interval' => 10,
'timeout' => 5,
'retries' => 3,
'startPeriod' => 30,
'startInterval' => 5,
],
'backups' => [],
'workers' => [],
'envVars' => [
Expand Down Expand Up @@ -155,6 +163,14 @@ public function handle()
'command' => null,
],
'command' => null,
'healthcheck' => [
'command' => null,
'interval' => 10,
'timeout' => 5,
'retries' => 3,
'startPeriod' => 30,
'startInterval' => 5,
],
'backups' => [],
'workers' => [],
'envVars' => [
Expand Down Expand Up @@ -209,6 +225,14 @@ public function handle()
'command' => 'php artisan config:cache && php artisan migrate --no-interaction --verbose --ansi --force',
],
'command' => null,
'healthcheck' => [
'command' => null,
'interval' => 10,
'timeout' => 5,
'retries' => 3,
'startPeriod' => 30,
'startInterval' => 5,
],
'backups' => [],
'workers' => [
[
Expand Down

0 comments on commit ca15de3

Please sign in to comment.