-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composer based install fails for DOCROOT != public #54
Comments
Not sure why you are asking the same question again here, I've posted you the solution here TYPO3/get.typo3.org#291 (comment) Here the order of the commands is just wrong. Please stick to my example instead. Now to your current problem here.
These lines will:
|
In TYPO3/get.typo3.org#291 I am reporting that THE TEXT on the download page of get.typo3.org is ambiguous. IMHO that should be addressed. To the least, just make clear, that people don't change the value but use the lines EXACTLY as they are. Why I'm asking here "again"? It's not again, it's something different. Here I'm asking about technical background that I want to learn and just get to work. You were kind enough over there to give some technical help. However, whatever I tried, I didn't get it working. And I reported that back in TYPO3/get.typo3.org#291 (comment) , "Still problematic", "Problem" So I think it's fair to continue asking. I want to have a clear understanding of:
|
Another tryHere is another try with a different order. PROJECT=~/ddevprojects/dummy-project/dummy PUBLIC_FOLDER=public_html # http://dummy.ddev.site:8071 # http://dummy.ddev.site:44371 ## Remove the project, in case it exists true \ && [[ ! -z "${PROJECT}" ]] \ && ddev poweroff \ && cd ${PROJECT} \ && ddev delete --omit-snapshot --yes \ && cd .. \ && rm -rf ${PROJECT} ## Create project true \ && [[ ! -z "${PROJECT}" ]] \ && mkdir -p ${PROJECT} \ && cd ${PROJECT} \ && ddev config \ --create-docroot \ --docroot=${PUBLIC_FOLDER} \ --http-port=8071 \ --https-port=44371 \ --php-version="7.4" \ --project-type=typo3 \ --xdebug-enabled=false \ && ddev composer create "typo3/cms-base-distribution:^10.4" --no-install \ && ddev composer config "extra.typo3/cms.web-dir" ${PUBLIC_FOLDER} \ && ddev composer install \ && ddev typo3cms install:setup Encountering this problemQuestions
|
About 80% of the TYPO3 projects I'm working on since around 4 years do have a custom web-dir (not "public") so, the first question is "yes". Also with DDEV, however, I'm not using a bash script as you do. In addition, the option "web-dir" stems from the composer plugin https://github.com/TYPO3/CmsComposerInstallers - the Base Distribution is actually just a simple wrapper around a few TYPO3 Core packages.
The folder structure looks good so far. |
Great, ...thank you @bmack , your 'bennitest' example is great for me: it works, it's educative and gives me a lot of freedom, personally I will use variations of your example. With my bash-like scripts I only want to document exactly what I'm doing. What worries meThe very first installation method we - highly - recommend on the Get TYPO3 download page is this one: ddev config --project-type=typo3 --docroot=public --create-docroot ddev composer create "typo3/cms-base-distribution:^11.5" ddev typo3cms install:setup ddev launch This looks like a great start, but IMHO it is not. It is to fragile. It suggests, that you can specify a docroot other than IMHO something should be done about this on get.typo3.org! A working solution with DDEV and no local
|
People should know that they can't use a different value for 'docroot'. See also: * TYPO3/get.typo3.org#291 * TYPO3/TYPO3.CMS.BaseDistribution#54 * ddev/ddev#3701
People should know that they can't use a different value for 'docroot'. See also: * TYPO3/get.typo3.org#291 * TYPO3/TYPO3.CMS.BaseDistribution#54 * ddev/ddev#3701
People should know that they can't use a different value for 'docroot'. See also: * TYPO3/get.typo3.org#291 * TYPO3/TYPO3.CMS.BaseDistribution#54 * ddev/ddev#3701
People should know that they can't use a different value for 'docroot'. See also: * TYPO3/get.typo3.org#291 * TYPO3/TYPO3.CMS.BaseDistribution#54 * ddev/ddev#3701 (cherry picked from commit de2b98c)
Intro
I hope I'm reporting this problem at the proper location.
This is Ubuntu 20.04.4, ddev version v1.18.2, Composer version 2.2.6 2022-02-04 17:00:38
Task, intention
Do a composer based installation with DDEV as recommended first place at get.typo3.org
Problem
I've been desperately trying to find a procedure that allows a custom name for the docroot folder. No success. If I stick with the default name
public
it works. If I try withpublic_html
it doesn't.How to reproduce
I'm using these steps, top down, as far as I can get:
Question(s)
public_html
as docroot folder?The text was updated successfully, but these errors were encountered: