Skip to content

Commit

Permalink
fix(bin): fix charcoal binary appConfig's basePath
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelAlphonso committed Sep 15, 2022
1 parent 84441a3 commit 95bd3a5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions bin/charcoal
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,10 @@ if (!file_exists($confFile)) {
die('Charcoal configuration file not found.' . "\n");
}

$config = new AppConfig();
$config = new AppConfig([
'base_path' => $baseDir,
]);
$config->addFile($confFile);
$config->set('base_path', $baseDir . '/');

// Serve the application from the web directory.
chdir($config['public_path']);

// Create container and configure it (with charcoal-config)
$container = new AppContainer([
'config' => $config,
Expand Down

0 comments on commit 95bd3a5

Please sign in to comment.