Skip to content
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

DDEV initializsation #43

Closed
garvinhicking opened this issue Dec 30, 2024 · 12 comments
Closed

DDEV initializsation #43

garvinhicking opened this issue Dec 30, 2024 · 12 comments

Comments

@garvinhicking
Copy link
Contributor

garvinhicking commented Dec 30, 2024

Readme states to do a "ddev start && make install".

However, the process needs some tuning. After a "composer install" ddev needs to be restarted.

Probalby tweak:

.PHONY: setup
setup:
        @echo "Please note: The password to use during the interactive setup is 'db'."
        ddev typo3 setup --force
        ddev typo3 extension:setup
        @echo "Please note: The password to use during the interactive setup is 'db'."```

into:

.PHONY: setup
setup:
       @echo "Restarting DDEV to ensure it can detect TYPO3 version and create additional.php"
       ddev restart
        @echo "Please note: The password to use during the interactive setup is 'db'."
        ddev typo3 setup --force
        ddev typo3 extension:setup
        @echo "Please note: The password to use during the interactive setup is 'db'."```

Untested yet. I fixed this myself by restarting DDEV and then running setup again.

However I still run into the issue that the typo3 console setup fails with:

In SetupCommand.php line 626:

  The given url for the site name is not valid! Please try again.

Unsure if this is a bug with TYPO3 v13?! I have an empty site tree after this and could log into TYPO3

@garvinhicking
Copy link
Contributor Author

It seems the "Initialization" of my_site_package is not executed. I must admit I don't know how/if I can manually import this through the CLI or so?

@garvinhicking
Copy link
Contributor Author

It seems that "my_site_package" has a site config with:

base: '/'

however in my base config/sites/main/config.yaml this was created:

base: 'https://site-introduction.ddev.site'

@garvinhicking
Copy link
Contributor Author

SetupCommand.php at line 627 receives "no" as the URL for the Site...

@garvinhicking
Copy link
Contributor Author

It seems if I run this:

ddev typo3 setup --force --create-site 'https://site-introduction.ddev.site'

it works.

@garvinhicking
Copy link
Contributor Author

Actually it doesn't work, because I guess NO site should be created.

It seems that in setting TYPO3_SETUP_CREATE_SITE=no in the file .ddev/docker-compose.context.yaml is what triggers this.

The constant should better be left out completely, or set to an empty string "". Or the CLI could execute this:

ddev typo3 setup --force --create-site ''

BTW, it seems the backend_layout is missing some label of sorts, i get this in the backend then:

Screenshot 2024-12-30 at 22 05 00

@garvinhicking
Copy link
Contributor Author

(I cannot pick "pagets__Default" from the list, it always reverts to the empty option, which leads to a malformed backend layout)

@garvinhicking
Copy link
Contributor Author

Ah, somehow the site configuration did not have the "my-site-package" set as a dependency?! I had to manually add this.

@linawolf
Copy link
Member

The fact that the set up command did not work is I think a core bug: https://forge.typo3.org/issues/105871

@linawolf
Copy link
Member

The backend layout issue is waiting to be merged to be fixed: TYPO3/get.typo3.org#480 Benji is probably on vacation

@linawolf
Copy link
Member

The rest of the problems is probably caused by the site that you created so that site config etc did not match anymore?

In all my trials the additional.php was created automatically without a ddev restart. Mac issue?

@linawolf
Copy link
Member

@garvinhicking do these commits resolve your issues? can we close this issue?

@fe-hicking
Copy link
Contributor

Yes, looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants