Skip to content

Commit

Permalink
deployment: support for installation via composer require [Closes #143]
Browse files Browse the repository at this point in the history
installation via "composer require" is not recommended, use "composer create-project"
  • Loading branch information
dg committed Jun 2, 2021
1 parent 459a4bf commit d7a4f3c
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions src/deployment.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,12 @@
exit(1);
}

require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/Deployment/Server.php';
require __DIR__ . '/Deployment/FtpServer.php';
require __DIR__ . '/Deployment/SshServer.php';
require __DIR__ . '/Deployment/PhpsecServer.php';
require __DIR__ . '/Deployment/FileServer.php';
require __DIR__ . '/Deployment/RetryServer.php';
require __DIR__ . '/Deployment/Helpers.php';
require __DIR__ . '/Deployment/Safe.php';
require __DIR__ . '/Deployment/Logger.php';
require __DIR__ . '/Deployment/Deployer.php';
require __DIR__ . '/Deployment/Preprocessor.php';
require __DIR__ . '/Deployment/CommandLine.php';
require __DIR__ . '/Deployment/CliRunner.php';
require __DIR__ . '/Deployment/ServerException.php';
require __DIR__ . '/Deployment/JobRunner.php';
require __DIR__ . '/Deployment/JobException.php';
if (is_file(__DIR__ . '/../vendor/autoload.php')) {
require __DIR__ . '/../vendor/autoload.php';

} elseif (is_file(__DIR__ . '/../../../autoload.php')) {
require __DIR__ . '/../../../autoload.php';
}


$runner = new CliRunner;
Expand Down

0 comments on commit d7a4f3c

Please sign in to comment.