From 49816492766a283a14d23d56d386f96f057fd00c Mon Sep 17 00:00:00 2001 From: Joel Alphonso Date: Thu, 15 Sep 2022 16:16:49 -0400 Subject: [PATCH] fix(bin): fix charcoal binary appConfig's basePath --- bin/charcoal | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bin/charcoal b/bin/charcoal index e6a6b660c..35642236a 100755 --- a/bin/charcoal +++ b/bin/charcoal @@ -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,