* Sample real-world deployment script
This is a simple Deployer script.
* Update CHANGELOG.md
* moved info about new doc page to "added" section
* After running `php bin/changelog fix`
* Clarified default_stage, made example 'staging'
Addresses issue #1866
Clarified that you need to set a default_stage in your Deployer script, and also changed the example to 'staging' since that is a better example default to have (instead of production).
* Update CHANGELOG.md
* Fixed formatting on issue number
Fix wrong change introduced in 62db938884
`.env` file should not be shared because it's release-specific. On the other hand, `.env.local` and `.env.local.php` files are specific to deployment environment and should be shared between releases.
See for details: https://github.com/deployphp/deployer/pull/1907#issuecomment-533779139
* fixed invalid phpdoc
* Update CHANGELOG.md
* fixed askChoice() @return phpdoc
it can return array on multiselect questions but also scalars on non-multi
* fixed typo
* fixed another typo
* more precise phpdoc
* Add tasks to cache a manifest of event listeners
Laravel supports automatic discovery of events and listeners since
version 5.8.9. (https://laravel.com/docs/5.8/events#event-discovery)
As the documentation states, you want to cache the manifest of event
listeners in a production environment to prevent scanning the
directories on every request.
The new tasks are not added to the deploy task because automatic event
discovery is opt-in functionality in Laravel.
* Update CHANGELOG.md
* Add check_remote_head option to avoid unnecessary new releases by checking the remote git HEAD without cloning the repo.
* Add check_remote_head into the CHANGELOG
* Add the pull request link to CHANGELOG
* Update CHANGELOG.md
Removed extra spaces: https://github.com/deployphp/deployer/pull/1759
* Fix changelog. Improve check_remote_head
* Use GrasefulSutdown exception instead of exit(0).
* Change bash if statement in check_remote_head.
* Remove redundant code.
* Replace if statement with test.
* Update artisan cache commands
- Re-add `artisan:view:clear` command
- Modify the existing `artisan:view:cache` command to remove the call to clear the cache, as this is already completed by the Laravel Framework
* Updated changelog with laravel view cache changes
* Update CHANGELOG.md
Update newline spacing to fix scrutinizer failure
* add test to show issue with once() used with --parallel and --limit issue
* handle once() in a better way to prevent issue with --parallel and --limit
* Add test before http_user detection
Script will no attempt to longer detect http_user if there are more than 1 possible candidates.
* Update CHANGELOG.md
Updated for issue #1778
* Update CHANGELOG.md
Added missing link to issue
* Change detection strategy from bash test to php
This reduces the number of ssh calls to the remote host.
* Let rsync honor 'become' option for host
If a host has a 'become' option set, it seems sensible that rsync uploads
should also be performed as that same user, which is currently not the case.
This change makes rsync run as the 'become' user by running sudo on the
remote side, just like how 'become' is implemented for normal SSH commands.
* Update CHANGELOG.md
* Update CHANGELOG.md
* Escape arguments passed to rsync shell command
This fixes errors when attempting to upload a path containing spaces.
* Update CHANGELOG.md
* Update CHANGELOG.md