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

Presentation automatic deployment with TYPO3v4

on

  • 1,549 views

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.

Statistics

Views

Total Views
1,549
Views on SlideShare
1,549
Embed Views
0

Actions

Likes
0
Downloads
9
Comments
0

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Presentation automatic deployment with TYPO3v4 Presentation automatic deployment with TYPO3v4 Presentation Transcript

  • Automatic Deployment with TYPO3v4 Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich
  • 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
  • WorkshopParticipants Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich
  • 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
  • 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
  • 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
  • So again, why? Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich
  • So again, why?Cant live without it! Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • What does it look like? Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich
  • 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
  • A does it work? nd .... Demo! Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich
  • 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
  • WishlistUse rsync for speeding up deployment process..... Automatic Deployment with TYPO3v4 Presentation 1 4-4-201 2 at T3DD1 2 Munich
  • 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
  • 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