Presentation automatic deployment with TYPO3v4

download Presentation automatic deployment with TYPO3v4

If you can't read please download the document

description

Demostrating a setup for automatic deployment of TYPO3 projects from development to test, acceptation and production servers. Uses git, ant, bash scripts and EXT:t3deploy.

Transcript of Presentation automatic deployment with TYPO3v4

  • 1. Automatic Deployment with TYPO3v4Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich

2. About usStuart McFarlaneSebastiaan van Parij sMarieke Heij manLoek HilgersomBkwi, governmental organisation, The Netherlands Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich 3. WorkshopParticipants Automatic Deployment with TYPO3v4Presentation 1 4-4-201 2 at T3DD1 2 Munich 4. WorkshopGoals:Explain the why & howDemonstrate our setupHear your experiences & ideasFinal aim: Kickstart a TYPO3-deployment proj ect! Automatic Deployment with TYPO3v4Presentation 1 4-4-201 2 at T3DD1 2 Munich 5. Why?Professional way of workingHow we worked before: Fixing issues directly on production systems Sometimes even development Tedious work deploying new work to a live site No systematic testing, no proper roll-back, etc.Automatic Deployment with TYPO3v4Presentation 1 4-4-201 2 at T3DD1 2 Munich 6. Preferred situationEverything in version controlAutomatic deployment to test, acceptance and productionProper testing on test and acceptance environments ==> Hardly ever surprises when going liveGoing live is almost a press of a buttonMoving towards complete Continuous Integration setupAutomatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich 7. So again, why? Automatic Deployment with TYPO3v4Presentation 1 4-4-201 2 at T3DD1 2 Munich 8. So again, why?Cant live without it!Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich 9. Techniques usedGitBash scriptsAntJenkinsEXT: t3deploy+ additional code for clearing caches from command lineAutomatic Deployment with TYPO3v4Presentation 1 4-4-201 2 at T3DD1 2 Munich 10. How does it work?Main principlesSeparate environment-specific from project-specificDeltas / update scriptsDatasetsScripting tasksTrigger & report (Jenkins) Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich 11. Environment- vs. Proj ect-specificlocalconf.phpTypoScript constantsDomain recordsServer access==> symlink to local/config dirAutomatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich 12. Deltas / update scriptsA new version usually includes more than only new code:Database changes (deltas)Files in non-versioned directories like fileadmin or uploadsOccasionally other things like changing file permissions or running ascript==> for each version: updates.sql, updates.sh & a file setAutomatic Deployment with TYPO3v4Presentation 1 4-4-201 2 at T3DD1 2 Munich 13. DatasetsClean, base installTestdataAcceptance deployment... for performance tests==> versioned and local datasets (for specific environment) Automatic Deployment with TYPO3v4Presentation 1 4-4-201 2 at T3DD1 2 Munich 14. Scripting tasksTasks:- set-up new installation - clean-up development environment - apply updates/ deltas - select configuration for specific environment - create and restore backups - create and apply datasets - various practicallities like: setting symlinks, file permissions==> Bash scripts for tasks on local environmentsAutomatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich 15. Trigger and reportAutomatic daily builds, or start test-deployment after each code commitReport about build (success or fail)Run automatic tests, code documenter or code quality tools==> JenkinsAutomatic Deployment with TYPO3v4Presentation 1 4-4-201 2 at T3DD1 2 Munich 16. Work procedureCodeCommitDev-buildTest --->back to coding (beware of endless loops) :-)PushDaily build to test machineTest by testers ---> back to codingAutomatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich 17. Work procedure (continued)merge to acceptation branchacceptation buildacceptation tests ---> and back to coding again....merge to production branchproduction buildDeployment on productionAutomatic Deployment with TYPO3v4Presentation 1 4-4-201 2 at T3DD1 2 Munich 18. Work procedure (continued)merge to acceptation branchacceptation buildacceptation tests ---> and back to coding again....merge to production branchproduction buildDeployment on production.... and its time to open the champaign (were live!) Automatic Deployment with TYPO3v4Presentation 1 4-4-201 2 at T3DD1 2 Munich 19. What does it look like? Automatic Deployment with TYPO3v4Presentation 1 4-4-201 2 at T3DD1 2 Munich 20. What does it look like?(Note to self: show directory tree)Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich 21. A does it work? nd .... Demo!Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich 22. DemoClean-up development environmentRemote deployment (clean install or live update)Apply configuration (e.g. when developing on a different machine)Create backupCreate dataset Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich 23. WishlistUse rsync for speeding up deployment process.....Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich 24. Next stepsShare experiencesJ forces: start a TY deployment projoin PO3ect! Automatic Deployment with TYPO3v4Presentation 1 4-4-201 2 at T3DD1 2 Munich 25. Automatic Deployment with TYPO3v4(For a smooth sailing)https:/notes.typo3.org/ deployment /p/Thank you for attending!Contact: loek@ netcoop.nl Twitter: @ netcoopAutomatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich