Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
limenet committed Feb 2, 2017
1 parent b5b09b9 commit f5200bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/limenet/Deploy/Deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,16 @@ protected function updateCode()
}

$commands = [
'cd '.$this->basepath,
'git reset --hard HEAD',
'git pull',
$updateMaster,
'composer install --no-dev',
'yarn install --production',
];

exec(implode(' && ', $commands), $output, $returnValue);
foreach ($commands as $command) {
exec('cd '.$this->basepath.' && '.$command, $output, $returnValue);
}

return [
'output' => $output,
Expand Down

0 comments on commit f5200bb

Please sign in to comment.