Skip to content
Snippets Groups Projects
Commit ee208fca authored by JediKev's avatar JediKev Committed by Peter Rotich
Browse files

issue: CLI Deploy Missing Bootstrap

This addresses issue 4322 where deploying via CLI is missing
`bootstrap.php`. This is due to the `get_include_dir()` function that
tries to include a file from the destination which doesn’t exist yet,
causing a fatal error. This updates the function to use `$this->source`
instead of `$this->destination` to correctly find and include
`bootstrap.php`.
parent 132d838f
No related branches found
No related tags found
No related merge requests found
...@@ -210,7 +210,7 @@ class Unpacker extends Module { ...@@ -210,7 +210,7 @@ class Unpacker extends Module {
), $pipes); ), $pipes);
fwrite($pipes[0], "<?php fwrite($pipes[0], "<?php
include '{$this->destination}/bootstrap.php'; include '{$this->source}/bootstrap.php';
print INCLUDE_DIR; print INCLUDE_DIR;
"); ");
fclose($pipes[0]); fclose($pipes[0]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment