Skip to content
Snippets Groups Projects
Commit 2dacfde0 authored by JediKev's avatar JediKev
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 7bd08848
Branches
Tags
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.
Please register or to comment