CAPISTRANO 3DEPLOYMENT DE APLICAÇÕES ESCALÁVEIS
THE DEVELOPERS CONFERENCE 2015 – TRILHA PHP – LEVI FERREIRA
O CAPISTRANO 3- Escrito em Ruby. (off rails)- Para todas as linguagens.- Suporte nativo a Multi-ambientes - Suporte nativo a Multi-servidores- Publicação paralela ou em fila.- Suporte a sistemas de versionamento.- Facil de criar novas funcionalidades.- Open Source- ‘N’ Módulos. Inclusive oficiais para:
- Symfony2- Laravel- Drupal- Composer- NewRelic
- Comunidade ativa.
INSTALAÇÃO
$ gem install bundle$ gem install caphub$ caphub my-project$ bundle install$ cap –T #Exibir tasks disponíveis
* Pré requisito: Ruby >= 1.9.3
CRIANDO UMA TASK
task :restart do puts ‘Restarting services'
on roles(:web), in: :parallel do execute :sudo, '/usr/sbin/service', 'php5-fpm', :restart execute :sudo, '/usr/sbin/service', 'nginx', :restart end end
Referências
capistranorb.comgithub.com/railsware/caphubgithub.com/capistrano/composer/github.com/capistrano/symfonygithub.com/seuros/capistrano-newrelicgithub.com/capistrano/laravelgithub.com/capistrano/drupal-deploygithub.com/leviferreira/capistrano-study-case
Obrigado!
Levi [email protected]/leviferreirafacebook.com/leviferreirjobs.natuelabs.iojoind.in/talk/view/14850
Top Related