mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 17:22:41 +01:00
24 lines
585 B
PHP
24 lines
585 B
PHP
<?php
|
|
$loaded = false;
|
|
|
|
foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
|
|
if (file_exists($file)) {
|
|
require $file;
|
|
$loaded = true;
|
|
break;
|
|
}
|
|
}
|
|
|
|
if (!$loaded) {
|
|
die(
|
|
'You need to set up the project dependencies using the following commands:' . PHP_EOL .
|
|
'composer install' . PHP_EOL
|
|
);
|
|
}
|
|
|
|
require_once __DIR__ . '/recipe/AbstractTest.php';
|
|
|
|
putenv('DEPLOYER_LOCAL_WORKER=true');
|
|
define('DEPLOYER_BIN', __DIR__ . '/../bin/dep');
|
|
define('__TEMP_DIR__', sys_get_temp_dir() . '/deployer');
|