diff --git a/.ddev/.gitignore b/.ddev/.gitignore index e47970d8f198b3098fa01ffa3df82a674d832be8..9989216d80d4877f9edbc34fe19975fc9595ed9f 100644 --- a/.ddev/.gitignore +++ b/.ddev/.gitignore @@ -13,11 +13,9 @@ /db_snapshots /sequelpro.spf /import-db -/.bgsync* /config.*.y*ml /.webimageBuild /.dbimageBuild -/.bgsyncimageBuild /.sshimageBuild /.webimageExtra /.dbimageExtra diff --git a/.ddev/config.yaml b/.ddev/config.yaml index 792cdd724f28df1efce2fba219a413eb3dd64cc3..30b4a40c33eb82bded92fcf5a64294618b498e0f 100644 --- a/.ddev/config.yaml +++ b/.ddev/config.yaml @@ -1,4 +1,4 @@ -APIVersion: v1.12.1 +APIVersion: v1.13.1 name: ter type: typo3 docroot: public @@ -13,6 +13,8 @@ mariadb_version: "10.2" nfs_mount_enabled: false provider: default hooks: + post-import-db: + - exec: vendor/bin/typo3cms database:updateschema post-start: - exec: cp private/typo3conf/AdditionalConfiguration.ddev.php private/typo3conf/AdditionalConfiguration.php - exec: composer install @@ -20,16 +22,15 @@ hooks: - exec: npm --prefix private/typo3conf/ext/t3olayout/Build run-script build - exec: vendor/bin/typo3cms install:generatepackagestates - exec: vendor/bin/typo3cms install:extensionsetupifpossible -webimage_extra_packages: [php7.2-ldap, build-essential] +webimage_extra_packages: [php7.2-ldap] use_dns_when_possible: true timezone: Europe/Berlin -# This config.yaml was created with ddev version v1.12.1 -# webimage: drud/ddev-webserver:v1.12.1 -# dbimage: drud/ddev-dbserver-mariadb-10.2:v1.12.0 -# dbaimage: drud/phpmyadmin:v1.12.0 -# bgsyncimage: drud/ddev-bgsync:v1.12.0 +# This config.yaml was created with ddev version v1.13.1 +# webimage: drud/ddev-webserver:v1.13.1 +# dbimage: drud/ddev-dbserver-mariadb-10.2:v1.13.0 +# dbaimage: phpmyadmin/phpmyadmin:5 # However we do not recommend explicitly wiring these images into the # config.yaml as they may break future versions of ddev. # You can update this config.yaml using 'ddev config'. @@ -43,7 +44,7 @@ timezone: Europe/Berlin # docroot: # Relative path to the directory containing index.php. -# php_version: "7.2" # PHP version to use, "5.6", "7.0", "7.1", "7.2", "7.3", "7.4" +# php_version: "7.3" # PHP version to use, "5.6", "7.0", "7.1", "7.2", "7.3", "7.4" # You can explicitly specify the webimage, dbimage, dbaimage lines but this # is not recommended, as the images are often closely tied to ddev's' behavior, @@ -52,7 +53,6 @@ timezone: Europe/Berlin # webimage: # nginx/php docker image. # dbimage: # mariadb docker image. # dbaimage: -# bgsyncimage: # mariadb_version and mysql_version # ddev can use many versions of mariadb and mysql @@ -108,10 +108,6 @@ timezone: Europe/Berlin # Great performance improvement but requires host configuration first. # See https://ddev.readthedocs.io/en/stable/users/performance/#using-nfs-to-mount-the-project-into-the-container -# webcache_enabled: false (deprecated) -# Was only for macOS, but now deprecated. -# See https://ddev.readthedocs.io/en/stable/users/performance/#webcache - # host_https_port: "59002" # The host port binding for https can be explicitly specified. It is # dynamic unless otherwise specified. @@ -156,6 +152,11 @@ timezone: Europe/Berlin # Provide extra flags to the "ngrok http" command, see # https://ngrok.com/docs#http or run "ngrok http -h" +# disable_settings_management: false +# If true, ddev will not create CMS-specific settings files like +# Drupal's settings.php/settings.ddev.php or TYPO3's AdditionalSettings.php +# In this case the user must provide all such settings. + # provider: default # Currently either "default" or "pantheon" # # Many ddev commands can be extended to run tasks before or after the diff --git a/private/typo3conf/AdditionalConfiguration.ddev.php b/private/typo3conf/AdditionalConfiguration.ddev.php index a0c77469e308498eb8238299f16bb4247777ccb2..c3d216b919ff7a63aa841d82291a28770ec139dc 100644 --- a/private/typo3conf/AdditionalConfiguration.ddev.php +++ b/private/typo3conf/AdditionalConfiguration.ddev.php @@ -20,4 +20,18 @@ $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['host'] = 'db'; $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['port'] = '3306'; $GLOBALS['TYPO3_CONF_VARS']['BE']['installToolPassword'] = '$P$CZqeoYBTHC0kXKny4tpTvBSzzV5wVY0'; /* joh316 */ -$GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['ter'] = serialize(['repositoryDir' => '/var/www/html/html/fileadmin/ter/']); +$GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['ter']['repositoryDir'] = '/var/www/html/private/fileadmin/ter/'; + +// Disable caches +$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_core']['backend'] = \TYPO3\CMS\Core\Cache\Backend\NullBackend::class; +$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_hash']['backend'] = \TYPO3\CMS\Core\Cache\Backend\NullBackend::class; +$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_pages']['backend'] = \TYPO3\CMS\Core\Cache\Backend\NullBackend::class; +$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_pagesection']['backend'] = \TYPO3\CMS\Core\Cache\Backend\NullBackend::class; +$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_phpcode']['backend'] = \TYPO3\CMS\Core\Cache\Backend\NullBackend::class; +$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_runtime']['backend'] = \TYPO3\CMS\Core\Cache\Backend\TransientMemoryBackend::class; +$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_rootline']['backend'] = \TYPO3\CMS\Core\Cache\Backend\NullBackend::class; +$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_imagesizes']['backend'] = \TYPO3\CMS\Core\Cache\Backend\NullBackend::class; +$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['l10n']['backend'] = \TYPO3\CMS\Core\Cache\Backend\NullBackend::class; +$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['extbase_object']['backend'] = \TYPO3\CMS\Core\Cache\Backend\NullBackend::class; +$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['extbase_reflection']['backend'] = \TYPO3\CMS\Core\Cache\Backend\NullBackend::class; +$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['extbase_datamapfactory_datamap']['backend'] = \TYPO3\CMS\Core\Cache\Backend\NullBackend::class;