Get going quickly with TYPO3 CMS Introduction Package and DDEV Local.
This repository provides a fully set up and ready to use TYPO3 CMS instance based on the TYPO3 CMS Introduction Package and using DDEV Local.
The installation steps are done on ddev start
if TYPO3 is not already setup.
Have a look at the DDEV Local configuration, especially
the post-start hooks which are doing the whole magic.
- Install (and start) Docker and DDEV Local (and on Windows also Git). On Windows, WSL2 is highly recommended.
- Clone or download and extract this repository
- Make sure ports 80 and 3306 are free! (Port fixing)
- Open a shell, head to the installation folder created before and run
ddev start
A new browser window opens and displays the login page to the TYPO3 Backend.
Enjoy!
To create and show the symlinks correctly on Windows you have to enable the Developer Mode or start your shell (Git Bash, cmd, PowerShell etc.) elevated (as adminstrator).
Otherwise the linked folders and files are shown as normal files with some text information about the target inside. This does not hurt the functionality in the container, but could be a little bit confusing on the host if you don't know about this behavior.
I'm currently working on a patch for DDEV here to simplify this behavior on Windows. In one of the next releases this will work out-of-the-box without changing to Developer Mode or using an elevated shell!
- Start project:
ddev start
- Stop project:
ddev stop
- Open frontend:
ddev launch
- Open backend
ddev launch typo3
To reset the project and start from scratch, run ddev reset
.
To change the TYPO3 CMS version run ddev reset [version]
. Valid versions are
10.4 or 9.5 or just their major version part.
E.g., to use the Introduction Package with TYPO3 CMS 9.5 run ddev reset 9
.
To simplify the usage of this demo there is a lot of magic implemented which I try to explain here.
If something remains unclear, open an issue and I will try to explain it.
Kudos go to the TYPO3-Console and its other packages composer-auto-commands and composer-typo3-auto-install.
composer-auto-commands
makes the usage of scripts in the composer.json
known
from the TYPO3 CMS Base Distribution
superfluous. In this case the package takes care to run the following commands:
- install:generatepackagestates
- install:fixfolderstructure
- database:updateschema
- cache:flush
- extension:setupactive
composer-typo3-auto-install
additionally takes care of the initial setup in case no
LocalConfiguration.php can be found. Important default values are set with the help of
the environment variables set in .env.
The admin name and password are currently commented out, the required user information
is collected via various prompts. Have a look at the TYPO3-Console Documentation
for supported variables.
Finally, the .env
file is loaded via the help of Helhum's dotenv-connector.
More information is available with the links above and in the TYPO3-Console Command Reference.
DDEV Local has the great possibility to create custom commands. The features to change the TYPO3 Core version and reset the project are implemented with the help of the custom command reset which is a simple bash script.
Additionally to the project configuration a docker-composer.*.yaml
file is provided to add the environment variable TYPO3_CONTEXT
. Read more about this
feature in the DDEV Documentation.
This project is released under the terms of the GNU GENERAL PUBLIC LICENSE.