-
-
Save ikskoder/84ecc8c4981fd8bcbf479664cc13813e to your computer and use it in GitHub Desktop.
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 | |
namespace Deployer; | |
require 'recipe/laravel.php'; | |
set('ssh_type', 'native'); | |
set('repository', 'https://github.com/ikskoder/deployer.git'); | |
set('default_stage', 'prod'); | |
// %site_alias% - алиас сайта конфиги которого, прописанны в файле ~/.ssh/config. Если что, алиас рабочий (если набрать в консоли "ssh site_alias", то все нормально подключается) | |
server('prod', '%site_alias%') | |
->stage('prod') | |
->set('deploy_path', '~/depl'); | |
add('shared_dirs', [ | |
'storage/app', | |
'storage/framework/cache', | |
'storage/framework/sessions', | |
'storage/framework/views', | |
'storage/logs', | |
'public/uploads', | |
'node_modules', | |
]); | |
add('shared_files', ['.env']); | |
add('writable_dirs', ['storage', 'vendor', 'public' ]); | |
task('deploy', [ | |
'deploy:prepare', | |
'deploy:release', | |
'deploy:update_code', | |
'deploy:shared', | |
'deploy:vendors', | |
'deploy:symlink', | |
'cleanup', | |
])->desc('Deploy your project'); | |
after('deploy', 'success'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment