Add DEPLOYER_DEBUG_PATHS env option to debug binary path

This commit is contained in:
Anton Medvedev 2021-10-22 23:19:36 +02:00
parent b7226c5415
commit ef2a8f30ef

10
bin/dep
View File

@ -55,12 +55,20 @@ if (!isset($localBinaryOverrideFound)) {
break; // Already required this binary
}
$localBinaryOverrideFound = true; // Only do it once.
if (getenv('DEPLOYER_DEBUG_PATHS')) {
echo "# require \"$binary\"\n";
}
require $binary;
exit;
}
}
}
if (getenv('DEPLOYER_DEBUG_PATHS')) {
$path = realpath(__FILE__);
echo "# using \"$path\"\n";
}
// Detect autoload location
$autoload = [
__DIR__ . '/../vendor/autoload.php', // The dep located at "deployer.phar/bin" or in development.
@ -110,4 +118,4 @@ define('DEPLOYER_BIN', __FILE__);
define('DEPLOYER_DEPLOY_FILE', $deployFile);
define('DEPLOYER_ROOT', getenv('DEPLOYER_ROOT') !== false ? getenv('DEPLOYER_ROOT') : dirname($deployFile));
Deployer\Deployer::run('7-master', $deployFile);
Deployer\Deployer::run('v7-master', $deployFile);