Skip to content

Commit

Permalink
Merge pull request #1488 from hydephp/improve-realtime-compiler-porta…
Browse files Browse the repository at this point in the history
…bility

Improve portability of the realtime compiler
  • Loading branch information
caendesilva authored Dec 11, 2023
2 parents 056d08e + 43adc52 commit 79df9cb
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 79df9cb

Please sign in to comment.