pocketarc / git-deploy-php

git-deploy-php is a simple php-based tool that deploys your Git repositories to FTP/SFTP servers, and keeps them updated automatically.
http://brunodebarros.github.io/git-deploy-php
291 stars 45 forks source link

Optionally delete maintenance_file at the end of deployment #64

Closed Tornskaden closed 8 years ago

Tornskaden commented 8 years ago

Frameworks like Laravel 5 just looks for the presence of a file at a specific location. E.g. Laravel 5 looks for the file storage/framework/down If it is, there the app is in maintenance mode, with no regards to the content of the maintenance file.

This pull adds the option to delete the file or write it at the end of deployment The phar has been tested and works with the new option.

pocketarc commented 8 years ago

This is awesome, thank you! :grin: I've reviewed it and merged it. I'll be adding the brackets back, though, in keeping with normal git-deploy-php code style, and to avoid issues like goto fail.

Tornskaden commented 8 years ago

Happy you could use it :-)