-
-
Save mvvitorsilvati/e2942f896d9e7a6f6a69c1fd3947814e to your computer and use it in GitHub Desktop.
Deploy example PHP Deployer
This file contains 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 | |
/*** step 1 ***/ | |
date_default_timezone_set('Europe/Stockholm'); | |
/*** step 2 ***/ | |
include_once 'vendor/deployer/deployer/recipe/common.php'; | |
/*** step 3 ***/ | |
server( 'production', 'andreasek.se', 22 ) | |
->env('deploy_path','/mnt/persist/www/aekab.se') | |
->user( 'root' ) | |
->env('branch', 'master') | |
->stage('production') | |
->identityFile(); | |
/*** step 4 ***/ | |
set('repository', 'git@github.com:ekandreas/aekab.git'); | |
/*** step 5 ***/ | |
set('env', 'prod'); | |
set('keep_releases', 10); | |
set('shared_dirs', ['web/app/uploads']); | |
set('shared_files', ['.env']); | |
set('env_vars', '/usr/bin/env'); | |
/*** step 6 ***/ | |
task( 'deploy', [ | |
'deploy:prepare', | |
'deploy:release', | |
'deploy:update_code', | |
'deploy:vendors', | |
'deploy:shared', | |
'deploy:symlink', | |
'cleanup', | |
'success' | |
] )->desc( 'Deploy your Bedrock project, eg dep deploy production' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment