Skip to content

Commit

Permalink
Unify and simplify environment variable prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
KentarouTakeda committed Nov 29, 2023
1 parent 8614317 commit d9fb90a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/StorageDirectories.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static function create()

$directories = array_filter($directories, static fn ($directory) => ! is_dir($directory));

if (count($directories) && defined('STDERR') && getenv('BREF_LARAVEL_BRIDGE_LOG_INIT')) {
if (count($directories) && defined('STDERR') && getenv('BREF_LARAVEL_LOG_INIT')) {
fwrite(STDERR, 'Creating storage directories: ' . implode(', ', $directories) . PHP_EOL);
}

Expand Down
2 changes: 1 addition & 1 deletion src/bref-init.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
putenv("APP_CONFIG_CACHE={$newConfigCachePath}");

$outputDestination = '> /dev/null';
if (getenv('BREF_LARAVEL_BRIDGE_LOG_INIT')) {
if (getenv('BREF_LARAVEL_LOG_INIT')) {
fwrite(STDERR, "Running 'php artisan config:cache' to cache the Laravel configuration\n");
// 1>&2 redirects the output to STDERR to avoid messing up HTTP responses with FPM
$outputDestination = '1>&2';
Expand Down

0 comments on commit d9fb90a

Please sign in to comment.