Your SlideShare is downloading. ×
Presentation automatic deployment with TYPO3v4
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Presentation automatic deployment with TYPO3v4

1,499
views

Published on

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.

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.

Published in: Technology, Travel

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,499
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Automatic Deployment with TYPO3v4 Automatic 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 TYPO3v4 Presentation 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 TYPO3v4 Presentation 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 TYPO3v4 Presentation 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 setup Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich
  • 7. So again, why? Automatic Deployment with TYPO3v4 Presentation 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 line Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich
  • 10. How does it work?Main principlesSeparate environment-specific from proj ect-specificDeltas / update scriptsDatasetsScripting tasksTrigger & report (J enkins) 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 dir Automatic 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 a script==> for each version: updates.sql, updates.sh & a file set Automatic Deployment with TYPO3v4 Presentation 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 TYPO3v4 Presentation 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 environments Automatic 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==> J enkins Automatic Deployment with TYPO3v4 Presentation 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 coding Automatic 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 production Automatic Deployment with TYPO3v4 Presentation 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 TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich
  • 19. What does it look like? Automatic Deployment with TYPO3v4 Presentation 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 PO3 ect! Automatic Deployment with TYPO3v4 Presentation 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: @ netcoop Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich