Created
April 13, 2018 10:45
-
-
Save mtigdemir/017df9e0afd4ecd194b9bf2a1ad9a9c0 to your computer and use it in GitHub Desktop.
Deployer Bitbucket Pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Deployer; | |
require 'recipe/rsync.php'; | |
require 'recipe/laravel.php'; | |
inventory('hosts.yml'); | |
set('rsync_src', __DIR__); | |
set('rsync_dest','{{release_path}}'); | |
task('deploy', [ | |
'deploy:info', | |
'deploy:prepare', | |
'deploy:lock', | |
'deploy:release', | |
'rsync', | |
'deploy:shared', | |
'deploy:vendors', | |
'deploy:writable', | |
'artisan:storage:link', | |
'artisan:view:clear', | |
'artisan:cache:clear', | |
'artisan:config:cache', | |
'artisan:optimize', | |
'deploy:symlink', | |
'deploy:unlock', | |
'cleanup', | |
])->desc('Deploy project'); | |
after('artisan:optimize', 'artisan:migrate'); | |
after('deploy', 'success'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment