gstypo3 / ddev-typo3-src Goto Github PK
View Code? Open in Web Editor NEWTYPO3 Legacy Installation with Symlinks using DDEV Local
License: GNU General Public License v3.0
TYPO3 Legacy Installation with Symlinks using DDEV Local
License: GNU General Public License v3.0
For versions already in ELTS the script tries to download latest ELTS version which does not work of course. To circumvent the issue the user can set an explicit version in the config.yaml e.g. TYPO3_SRC_VERSION=7.6.32
.
The script should install the latest LTS instead.
Hello,
I have a TYPO3 11 instance using your project (imported files and database from live server). If pages are not cached it loads really slow (+- 30 seconds). If page is cached just 100ms. The same system on a live server and dev server (debian10) runs fast. If I run a fresh ddev TYPO3 12 composer mode instance everything runs very fast.
System:
Intel iMac and M1 Macbook tested (on m1 it is a little bit faster, but not much)
colima and ddev installed via homebrew
mutagen enabled (if mutagen is disabled it is slower)
mariadb 10.5
PHP 8.2
nginx-fpm
upload_dirs:
- fileadmin
- files
- private
- public
- intranet
- uploads
- slides
- sasslog
- apps
- typo3temp/var/log
Any hints what could cause the problem?
The terminal shows this error message:
Create symlinks for local extensions...
packages/rwfm -> htdocs/typo3conf/ext/rwfm
ln: failed to create symbolic link 'htdocs/typo3conf/ext/rwfm': No such file or directory
Task failed: Exec command 'bin/install-typo3' in container/service 'web': exit status 1
A task failure does not mean that ddev failed, but your hook configuration has a command that failed.
The Install page opens as expected, but before proceeding there, I check "htdocs/typo3conf/" to see what happened to the local extensions. They could not have been installed, because there is no "ext" folder yet.
This only happens, when "TYPO3_LOCAL_EXTENSIONS" is configured.
I assume ddev's setup routine didn't finish in time, before the symlinking was initiated?
No idea, if this is fixable. But in case it is not, I wonder if the symlinking could be externalized to a separate bash script. That would also make it possible to call it at a later time, when TYPO3 is already installed and working, but suddenly the wish for local extension comes up. Or when I add more local extensions that need to be symlinked again...
What do you think?
Instead of hard coding the versions the get.typo3.org API should be used to dynamically fetch the latest version informations.
It would be great, it the repo could also describe how an upgrade an existing project to the next version of TYPO3 and pre-requisites as well as the consequences to be considered.
Simply changing the requirement in ddev's config.yaml
does not seem to suffice.
This is what I did:
ddev export --gzip=false --file=db_backup.sql
ddev poweroff
.yaml
files in the .ddev
folder except for config.yaml
config.yaml
with the new TYPO3_MAJOR_VERSION
(10 in my case) (and adapt TYPO3_MINOR_VERSION
if necessary)ddev start
At this point TYPO3's front is opened, and it throws an error pointing to the TYPO3 v10.4.21 resource:
Call to undefined method TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::require()
in /var/www/html/typo3_src-10.4.21/typo3/sysext/core/Classes/Package/PackageManager.php line 207
However, when switching to the install tool, it shows that the just updated project is still running on TYPO3 v9.5.31.
I would have proceeded like this:
ddev import --src=db_backup.sql
None of that makes any difference at this point.
I am most likely doing something very very wrong here :-/
Any chance to provide the steps? I'd be happy to poor them in sentences and provide a PR for the documentation.
Much like in composer-based setups, this setup could also use a packages
folder for local extensions, which are symlinked into htdocs/typo3conf/ext/.
Sorry, nonsense here
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.