Skip to content

Commit 4d7c09d

Browse files
committed
Updating README maintenance section
1 parent 1781f8d commit 4d7c09d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.mkd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ It works by modifying a file specified by the `maintenance_file` option in your
130130

131131
Note: It's up to your application to detect whether or not maintenance mode is on by checking the `maintenance_file`, and proceed accordingly.
132132

133+
Some frameworks looks for a file at a specific location and shows it's maintenance page if the file exists disregarding the content of the file. The file can be deleted at the end of deployment by not setting `maintenance_off_value`.
134+
This example works with Laravel 5:
135+
maintenance_file = 'storage/framework/down'
136+
maintenance_on_value = 'Down for maintenance'
137+
133138
How It Works
134139
------------
135140
git-deploy stores a file called REVISION on your server. This file contains the hash of the commit that you've deployed to that server. When you run git-deploy, it downloads that file and compares the commit reference in it with the commit you're trying to deploy to find out which files to upload.

0 commit comments

Comments
 (0)