Skip to content

Commit

Permalink
Update StartFrankenPhpCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
chu121su12 authored May 16, 2024
1 parent dbaa597 commit 1864a3e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Commands/StartFrankenPhpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class StartFrankenPhpCommand extends Command implements SignalableCommandInterfa
{--caddyfile= : The path to the FrankenPHP Caddyfile file}
{--https : Enable HTTPS, HTTP/2, and HTTP/3, and automatically generate and renew certificates}
{--http-redirect : Enable HTTP to HTTPS redirection (only enabled if --https is passed)}
{--server-debug : Enable debug mode}
{--watch : Automatically reload the server when the application is modified}
{--poll : Use file system polling while watching in order to watch files over a network}
{--log-level= : Log messages at or above the specified log level}';
Expand Down Expand Up @@ -96,9 +97,9 @@ public function handle(ServerProcessInspector $inspector, ServerStateFile $serve
'MAX_REQUESTS' => $this->option('max-requests'),
'REQUEST_MAX_EXECUTION_TIME' => $this->maxExecutionTime(),
'CADDY_GLOBAL_OPTIONS' => trim(sprintf(
'%s %s',
($debug['level'] ?? '') === 'debug' ? 'debug' : '',
($https && $this->option('http-redirect')) ? '' : 'auto_https disable_redirects',
"%s\n%s",
$this->option('server-debug') ? 'debug' : '',
$https && $this->option('http-redirect') ? '' : 'auto_https disable_redirects',
)),
'CADDY_SERVER_ADMIN_PORT' => $this->adminPort(),
'CADDY_SERVER_LOG_LEVEL' => $this->option('log-level') ?: (app()->environment('local') ? 'INFO' : 'WARN'),
Expand Down

0 comments on commit 1864a3e

Please sign in to comment.