mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-23 08:45:04 +01:00
26 lines
676 B
PHP
Executable File
26 lines
676 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
/* (c) Anton Medvedev <anton@elfet.ru>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
|
|
$deployFile = getcwd() . '/deploy.php';
|
|
|
|
if(is_file($deployFile) && is_readable($deployFile)) {
|
|
$deployer = new \Deployer\Deployer(
|
|
new \Symfony\Component\Console\Application('Deployer'),
|
|
new \Symfony\Component\Console\Input\ArgvInput(),
|
|
new \Symfony\Component\Console\Output\ConsoleOutput()
|
|
);
|
|
|
|
require $deployFile;
|
|
|
|
$deployer->run();
|
|
} else {
|
|
echo "deploy.php file does not found.";
|
|
} |