Skip to content

Commit 2a8d336

Browse files
committed
Ensure slow commands have time to run
1 parent fd9245b commit 2a8d336

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/Console/Commands/UpgradeCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public function handle()
105105

106106
$this->line('$upgrader> ' . implode(' ', $command));
107107
$process = new Process($command);
108+
$process->setTimeout(10 * 60);
108109
$process->run(function ($type, $buffer) {
109110
$this->line($buffer);
110111
});
@@ -134,7 +135,8 @@ public function handle()
134135

135136
$this->withProgress($bar, function () use ($user) {
136137
$this->line("\$upgrader> chown -R {$user}:{$user} *");
137-
$process = Process::fromShellCommandline("chown -R {$user}:{$user} *");
138+
$process = Process::fromShellCommandline("chown -R {$user}:{$user} *", $this->getLaravel()->basePath());
139+
$process->setTimeout(10 * 60);
138140
$process->run(function ($type, $buffer) {
139141
$this->{$type === Process::ERR ? 'error' : 'line'}($buffer);
140142
});

0 commit comments

Comments
 (0)