WORRY-FREE typo3 sITE SETUP

Manuel Glauser  |  Twitter: @manuelglauser


Stämpfli AG (@StaempfliWeb)

(FEAT. COMPOSER & TYPO3 CONSOLE)

«BUT ... CONTAINER SYSTEMS (p.e. DOCKER) ...?!»

Composer?
cOMPOSER!

f*#%&g genius! :D

getcomposer.org

Site
setup
In the ol' days

{
  "name": "site/typo3",
  "description": "Site root composer manifest",
  "repositories": [
    {
      "type": "composer",
      "url": "https://composer.typo3.org/"
    }
  ],

  "require": {

    "typo3/cms": "^8.7",
    "my/sitepackage": "*"
  }
}

composer.json in the repo's root directory, pulling together dependencies

Templating / setup

Setup process

  • Deploy repository
  • Run 'composer install'
  • Create FIRST_INSTALL file
  • Log into the install tool
  • Set up the site
  • Log into the backend
  • Activate needed extensions
    (wait for cache to clear each time, as well)
  • Set up extensions (configuration)
  • Create root site
  • Create template
  • Include constants and setup

Repeat for every instance
& keep in sync!

Problems

  • So many things to consider!
  • Inconsistencies between instances
  • Distributed and unversioned configuration (LocalConfiguration, AdditionalConfiguration, on each instance)
  • Speed
  • General hassle going through the process

typo3 console?
typo3 console!

f*#%&g genius! :D

github.com/helhum/typo3-console

./vendor/bin/typo3cms
./vendor/bin/typo3cms extension:setup myextension
./vendor/bin/typo3cms extension:setup myotherextension
./vendor/bin/typo3cms extension:setup thirdpartyextension
./vendor/bin/typo3cms configuration:set
./vendor/bin/typo3cms cache:flush

...

Site setup
without
losing one's mind

pexels.com/@minan1398

./vendor/bin/typo3cms

Setup Boils down to:

  • deploying the repository
  • installing the core and 3rd party extensions via composer
  • setting up the instance automatically via TYPO3 console (first install only)

«Biggest» changes

  • The root composer manifest now...
    • ... requires all needed core extensions
    • ... specifies a 'web-dir'
    • ... tells the TYPO3 instance what to do after each install / update 
  • Anything specifically belonging to the site (including configuration & directories) is to be versioned.
  • Forget the extension manager.
  • ... and most parts of the Install Tool

Example setup / DEMO

«basic-setup» branch

git clone -b basic-setup https://github.com/ManuelGlauser/t3czs-demo.git

Worry-free TYPO3 site setup (feat. Composer & TYPO3 console)

By Manuel Glauser

Worry-free TYPO3 site setup (feat. Composer & TYPO3 console)

  • 112
Loading comments...

More from Manuel Glauser