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

issue: CLI Deploy Missing Bootstrap Fix

This addresses an issue introduced with 4332 where the deploy CLI breaks
upon deploying to an existing location. This checks to see if there is a
bootstrap file in the destination first and if so it uses that one if not
uses the source.
parent 759b004c
No related branches found
No related tags found
No related merge requests found
......@@ -210,7 +210,11 @@ class Unpacker extends Module {
), $pipes);
fwrite($pipes[0], "<?php
include '{$this->source}/bootstrap.php';
if (file_exists('{$this->destination}/bootstrap.php'))
include '{$this->destination}/bootstrap.php';
else
include '{$this->source}/bootstrap.php';
print INCLUDE_DIR;
");
fclose($pipes[0]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment