From ef2a8f30eff1f392413648bbac41c35a72cc7ffb Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Fri, 22 Oct 2021 23:19:36 +0200 Subject: [PATCH] Add DEPLOYER_DEBUG_PATHS env option to debug binary path --- bin/dep | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/dep b/bin/dep index 55601f68..d560af8d 100755 --- a/bin/dep +++ b/bin/dep @@ -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);