git pull stuff

This commit is contained in:
Conkley 2022-07-25 16:52:56 +10:00
parent f053884488
commit de4c23d61c
1 changed files with 7 additions and 0 deletions

View File

@ -109,10 +109,17 @@ class RefreshApp extends Command
private function runPull() private function runPull()
{ {
$addSafe = Process::fromShellCommandline('git config --global --add safe.directory /var/www/MORBLOX-WEBSITE/morblox-site');
$addSafe->setWorkingDirectory(base_path());
$process = Process::fromShellCommandline('git pull'); $process = Process::fromShellCommandline('git pull');
$process->setWorkingDirectory(base_path()); $process->setWorkingDirectory(base_path());
$this->info("Running 'git pull'"); $this->info("Running 'git pull'");
$addSafe->run(function($type, $buffer) {
$this->pullLog[] = $buffer;
});
$process->run(function($type, $buffer) { $process->run(function($type, $buffer) {
$this->pullLog[] = $buffer; $this->pullLog[] = $buffer;