Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bin/hypernode-deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
\define('WORKING_DIR', getcwd());
\define('APPLICATION_ROOT', \dirname(__DIR__));

$customAutoLoadPath = WORKING_DIR . '/vendor/autoload.php';
// Allows to specify a custom autoload path to avoid overriding Hipex deploy packages
// when the same packages are used by your application and Hipex Deploy.
if (getenv('DEPLOY_AUTOLOAD_PATH') !== false) {
$customAutoLoadPath = getenv('DEPLOY_AUTOLOAD_PATH');
}

if (file_exists($customAutoLoadPath)) {
require_once $customAutoLoadPath;
if (file_exists($customAutoLoadPath)) {
require_once $customAutoLoadPath;
}
}


/** @var \Composer\Autoload\ClassLoader $loader */
$loader = require_once APPLICATION_ROOT . '/vendor/autoload.php';
if (!array_key_exists('Deployer\\', $loader->getPrefixesPsr4())) {
Expand Down
Loading