Skip to content

Commit

Permalink
Set the realtime compiler server executable path to the Phar file
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 1, 2023
1 parent 1c926ea commit b6ed185
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/anonymous-bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public function getCachedPackagesPath(): string
$app->afterBootstrapping(Hyde\Foundation\Internal\LoadConfiguration::class, function () use ($app) {
// Set the cache path for the compiled views
$app['config']->set('view.compiled', HYDE_TEMP_DIR . '/views');

// Set the realtime compiler server executable path to the Phar file (which is bin/server.php, relative to the Phar source root)
$app['config']->set('hyde.server.executable_path', (\Phar::running() ? \Phar::running() : __DIR__ . '/..') . '/bin/server.php');
});

/*
Expand Down

0 comments on commit b6ed185

Please sign in to comment.