mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Fix runLocally cd to remote dir
This commit is contained in:
parent
8d0fcfa16c
commit
6c7311200d
@ -23,6 +23,7 @@
|
||||
- Improved the way `ParallelExecutor` handles option parameters
|
||||
- Fixed no `stage` argument in parallel mode [#1299]
|
||||
- Improved environment variables management
|
||||
- Fixed `runLocally` to not cd into remote dir
|
||||
|
||||
### Removed
|
||||
- Removed `terminate_message` option
|
||||
|
@ -317,14 +317,8 @@ function runLocally($command, $options = [])
|
||||
{
|
||||
$process = Deployer::get()->processRunner;
|
||||
$hostname = 'localhost';
|
||||
|
||||
$workingPath = get('working_path', '');
|
||||
$command = parse($command);
|
||||
|
||||
if (!empty($workingPath)) {
|
||||
$command = "cd $workingPath && ($command)";
|
||||
}
|
||||
|
||||
$env = get('env', []) + ($options['env'] ?? []);
|
||||
if (!empty($env)) {
|
||||
$env = array_to_string($env);
|
||||
|
Loading…
x
Reference in New Issue
Block a user