[mini palestra] - deploy de-apps-php-com-capistrano
TRANSCRIPT
![Page 1: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/1.jpg)
DEPLOY DE APPS PHPCOM CAPISTRANO
Nanderson Castro
![Page 2: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/2.jpg)
NANDOKSTRONET
ZCPE PHP 5.5Web Developer STC-MAProfessor em CE Learning
GDG SLZ Community Manager
…
![Page 3: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/3.jpg)
![Page 4: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/4.jpg)
A remote server automation and deployment tool written in Ruby.
![Page 5: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/5.jpg)
PRÉ-REQUISITOS
![Page 6: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/6.jpg)
INSTALAÇÃO
![Page 7: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/7.jpg)
INICIANDO NOSSO PROJETO
![Page 8: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/8.jpg)
INICIANDO O CAPISTRANONO PROJETO
![Page 9: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/9.jpg)
ARQUIVOS E PASTAS
![Page 10: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/10.jpg)
DEPLOY.RB• application: ; #nome da aplicação
• repo_url: ; #link do repositório git
• deploy_to: ; #caminho completo até a aplicação no server remoto
• keep_releases: ; #quantidade de versões antigas a serem armazenadas, pro caso de rollback.
![Page 11: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/11.jpg)
DEPLOY/PRODUCTION.RB
• role :web, %w{ssh_user@ip_servidor}
![Page 12: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/12.jpg)
AUTOMATIZANDO A INSTALAÇÃO DAS
DEPENDÊNCIAS COM COMPOSER
1 namespace :deploy do 2 desc "Build" 3 after :updated, :build do 4 on roles(:web) do 5 within release_path do 6 execute :composer, "install --no-dev --quiet" 7 end 8 end 9 end 10 end
![Page 13: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/13.jpg)
cap production deploy
Realizando o Deploy
![Page 14: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/14.jpg)
cap production deploy:rollback
Realizando o Rollback da Aplicação
![Page 15: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/15.jpg)
Obrigado!
![Page 16: [Mini Palestra] - Deploy de-apps-php-com-capistrano](https://reader031.vdocuments.mx/reader031/viewer/2022030309/58f29ca61a28ab544d8b4581/html5/thumbnails/16.jpg)
Perguntas?!