Skip to content

Commit

Permalink
Improve portability of the realtime compiler
Browse files Browse the repository at this point in the history
Improves the portability of the realtime compiler to better support running through the standalone executable.

Pulls changes from hydephp/realtime-compiler#20
  • Loading branch information
caendesilva committed Dec 11, 2023
1 parent 056d08e commit f35ef0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/realtime-compiler/bin/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
define('BASE_PATH', realpath(getcwd()));
define('HYDE_START', microtime(true));

require_once BASE_PATH.'/vendor/autoload.php';
require(getenv('HYDE_AUTOLOAD_PATH') ?: BASE_PATH.'/vendor/autoload.php');

try {
$app = \Desilva\Microserve\Microserve::boot(\Hyde\RealtimeCompiler\Http\HttpKernel::class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ trait InteractsWithLaravel

protected function createApplication(): void
{
$this->laravel = require BASE_PATH.'/app/bootstrap.php';
$this->laravel = require (getenv('HYDE_BOOTSTRAP_PATH') ?: (BASE_PATH.'/app/bootstrap.php'));
}

protected function bootApplication(): void
Expand Down

0 comments on commit f35ef0d

Please sign in to comment.