Skip to content

Commit

Permalink
fix install
Browse files Browse the repository at this point in the history
  • Loading branch information
mnoskov authored Jun 4, 2021
1 parent 4b7c022 commit 593bebd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/AbstractLaravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ public function __construct()
throw new \Exception('Unable to load the "app" configuration file.');
}

$this['env'] = $this['config']->get('app.env', 'production');
if (defined('IN_INSTALL_MODE')) {
$this['env'] = 'install';
} else {
$this['env'] = $this['config']->get('app.env', 'production');
}

date_default_timezone_set($config->get('app.timezone', 'UTC'));
mb_internal_encoding('UTF-8');
Expand Down

0 comments on commit 593bebd

Please sign in to comment.