Skip to content

Commit

Permalink
allow env to control cache config path
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 14, 2018
1 parent 92416bf commit 578bc83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ public function configurationIsCached()
*/
public function getCachedConfigPath()
{
return $this->bootstrapPath().'/cache/config.php';
return $_ENV['APP_CONFIG_CACHE'] ?? $this->bootstrapPath().'/cache/config.php';
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/Illuminate/Foundation/Console/ConfigCacheCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public function handle()
$this->call('config:clear');

$config = $this->getFreshConfiguration();

$configPath = $this->laravel->getCachedConfigPath();

$this->files->put(
Expand Down

0 comments on commit 578bc83

Please sign in to comment.