2014-07-04 13:39:57 +04:00

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.";
}