mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-22 16:27:39 +01:00
Add DEPLOYER_DEBUG_PATHS env option to debug binary path
This commit is contained in:
parent
b7226c5415
commit
ef2a8f30ef
10
bin/dep
10
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user