O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.
Deploy com
Drupalda maneira certa!
about.me/revagomes
@revagomes
Sumário
O	que	é	deploy?
Conceitos	básicos
Ferramentas
Processo	de	deploy
Exemplo
O que é deploy?
Instalar,	testar	e	implementar	uma	aplicação	ou	sistema	de
computador.
A	palavra	deploy	tem	raíz	em	um	ter...
Continuous Deployment
in 5 steps
http://lb.cm/dploy5stps
Eric	Ries	-	O'Reilly	Radar
Deploy Contínuo em 5 passos
1.	 Continuous	integration	server.	
(Servidor	de	Integração	contínua)
2.	 Source	control	commi...
Ferramentas
Drush
Shell	Script
Git
Tests	(Cucumber/Watir/Gherkin,	Selenium,	CasperJS...)	
CI	Tool	(Jenkins,	Travis,	Cruise...
Por onde começar?
http://dltj.org/article/software-development-practice/
Ambiente de desenvolvimento
Local/Dev
Integração
Test/QA
Homolog/UA...
Git Workflow
1.	 Centralized	workflow
2.	 Feature	branch	workflow
3.	 Git	flow	workflow
4.	 Forking	workflow
https://www.atlassi...
Vincent	Driessen
http://nvie.com/posts/a-successful-git-branching-model
Git Flow
https://github.com/nvie/gitflow
Git	Flow	Cheatsheet
http://danielkummer.github.io/git-flow-cheatsheet/
Git hooks
pre-commit
post-receive
Drupal Code Quality
https://drupal.org/project/dcq
Instalação
https://drupal.org/node/2067677
E como faço com as
configurações?
Strongarm
https://drupal.org/project/strongarm
Features
https://drupal.org/project/features
https://drupal.org/documentation/modules/features
Drush Commands
features-components	(fc)	-	List	features	components.
features-diff	(fd)	-	Show	the	difference	between	the	def...
Configuration Management
Initiative (CMI)
https://groups.drupal.org/build-systems-change-
management/cmi
Configuration Management
http://drupal.org/project/configuration
Drush Commands
config-export	(cexp)	-	Export	a	configuration	to	the	datastore.
config-get-components	(cgc)	-	Return	the	list	...
E como fazer deploy de
Conteúdo?
Deploy
https://drupal.org/project/deploy
Content Staging Initiative (CSI)
https://groups.drupal.org/large-scale-drupal-lsd-projects-and-
plans/content-staging
Site...
Deploy com Drupal do Jeito Certo
Deploy com Drupal do Jeito Certo
Próximos SlideShares
Carregando em…5
×

Deploy com Drupal do Jeito Certo

Palestra do Renato na DrupalPicchu 2014

  • Entre para ver os comentários

Deploy com Drupal do Jeito Certo

  1. 1. Deploy com Drupalda maneira certa!
  2. 2. about.me/revagomes @revagomes
  3. 3. Sumário O que é deploy? Conceitos básicos Ferramentas Processo de deploy Exemplo
  4. 4. O que é deploy? Instalar, testar e implementar uma aplicação ou sistema de computador. A palavra deploy tem raíz em um termo militar, usado para descrever a colocação de equipamentos e tropas no campo de batalha. webopedia.com Wikipedia http://lb.cm/dploywiki
  5. 5. Continuous Deployment in 5 steps http://lb.cm/dploy5stps Eric Ries - O'Reilly Radar
  6. 6. Deploy Contínuo em 5 passos 1. Continuous integration server. (Servidor de Integração contínua) 2. Source control commit check. (Checagem de commits) 3. Simple deployment script. (Script de deploy simples) 4. Real-time alerting. (Alerta em tempo real) 5. Root cause analysis (five whys) (Análise da raíz do problema (5 porquês))
  7. 7. Ferramentas Drush Shell Script Git Tests (Cucumber/Watir/Gherkin, Selenium, CasperJS...) CI Tool (Jenkins, Travis, CruiseControl, Buildbot...)
  8. 8. Por onde começar?
  9. 9. http://dltj.org/article/software-development-practice/ Ambiente de desenvolvimento Local/Dev Integração Test/QA Homolog/UAT Staging Production
  10. 10. Git Workflow 1. Centralized workflow 2. Feature branch workflow 3. Git flow workflow 4. Forking workflow https://www.atlassian.com/git/workflows
  11. 11. Vincent Driessen http://nvie.com/posts/a-successful-git-branching-model
  12. 12. Git Flow https://github.com/nvie/gitflow Git Flow Cheatsheet http://danielkummer.github.io/git-flow-cheatsheet/
  13. 13. Git hooks
  14. 14. pre-commit
  15. 15. post-receive
  16. 16. Drupal Code Quality https://drupal.org/project/dcq Instalação https://drupal.org/node/2067677
  17. 17. E como faço com as configurações?
  18. 18. Strongarm https://drupal.org/project/strongarm
  19. 19. Features https://drupal.org/project/features https://drupal.org/documentation/modules/features
  20. 20. Drush Commands features-components (fc) - List features components. features-diff (fd) - Show the difference between the default and overridden state of a feature. features-export (fe) - Export a feature from your site into a module. features-list (fl, features) - List all the available features for your site. features-revert (fr) - Revert a feature module on your site. features-revert-all (fr-all, fra) - Revert all enabled feature module on your site. features-update (fu) - Update a feature module on your site. features-update-all (fu-all, fua) - Update all feature modules on your site.
  21. 21. Configuration Management Initiative (CMI) https://groups.drupal.org/build-systems-change- management/cmi
  22. 22. Configuration Management http://drupal.org/project/configuration
  23. 23. Drush Commands config-export (cexp) - Export a configuration to the datastore. config-get-components (cgc) - Return the list of configurations components that can be exported. config-get-identifiers (cgi) - Return the list of identifiers for a given component. config-get-non-tracked (cgnt) - Return the list of configurations components that are not tracked. config-get-tracked (cgt) - Return the list of configurations components that are tracked. config-list (clist) - Return the list of components and identifiers. config-start-tracking (csta) - Start tracking configuration changes. config-stop-tracking (csto) - Stop tracking configuration changes. config-sync (csyn) - Synchronize configurations
  24. 24. E como fazer deploy de Conteúdo?
  25. 25. Deploy https://drupal.org/project/deploy
  26. 26. Content Staging Initiative (CSI) https://groups.drupal.org/large-scale-drupal-lsd-projects-and- plans/content-staging Site Preview System Interactive Information Bar State Machine Collections

×