Skip to content

Commit 1781f8d

Browse files
committed
Missing maintenance_off_value unsets maintenance_file
When maintenance_file is set you can now optionally delete the file when it finishes Frameworks like Laravel just looks for a specific file at a given location. E.g. maintenance_file = 'storage/framework/down' maintenance_on_value = 'Down for maintenance'
1 parent d4a8ad1 commit 1781f8d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

git-deploy

-30.1 KB
Binary file not shown.

tools/src/Server.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ protected function set_current_commit($target_commit, $list_only = false) {
164164
}
165165

166166
if (isset($this->server['maintenance_file'])) {
167-
$this->set_file($this->server['maintenance_file'], $this->server['maintenance_off_value']);
167+
if (isset($this->server['maintenance_off_value']))
168+
$this->set_file($this->server['maintenance_file'], $this->server['maintenance_off_value']);
169+
else
170+
$this->unset_file($this->server['maintenance_file']);
168171
Helpers::logmessage("Turned maintenance mode off.");
169172
}
170173

0 commit comments

Comments
 (0)