mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Allow vars in deploy_path
This commit is contained in:
parent
6a6d2372aa
commit
db37dcb833
@ -8,6 +8,7 @@
|
||||
namespace Deployer\Console;
|
||||
|
||||
use Deployer\Deployer;
|
||||
use Deployer\Task\Context;
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
@ -49,6 +50,8 @@ class SshCommand extends Command
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$host = $this->deployer->hosts->get($input->getArgument('hostname'));
|
||||
Context::push(new Context($host, $input, $output));
|
||||
|
||||
$options = $host->sshOptions();
|
||||
$deployPath = $host->get('deploy_path', null);
|
||||
|
||||
|
@ -60,7 +60,7 @@ function host(...$hostnames)
|
||||
function localhost($alias = 'localhost')
|
||||
{
|
||||
$deployer = Deployer::get();
|
||||
$host = new Localhost();
|
||||
$host = new Localhost($alias);
|
||||
$deployer->hosts->set($alias, $host);
|
||||
return $host;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user