Skip to content

DDEV Guide - Update Contao Installation DDEV Guide#1461

Merged
netzarbeiter merged 13 commits intocontao:mainfrom
fkaminski:pr_ddev_demo
Nov 12, 2024
Merged

DDEV Guide - Update Contao Installation DDEV Guide#1461
netzarbeiter merged 13 commits intocontao:mainfrom
fkaminski:pr_ddev_demo

Conversation

@fkaminski
Copy link
Copy Markdown
Contributor

fkaminski and others added 2 commits November 4, 2024 16:55
Co-authored-by: Fritz Michael Gschwantner <fmg@inspiredminds.at>
Co-authored-by: Fritz Michael Gschwantner <fmg@inspiredminds.at>
Copy link
Copy Markdown
Contributor

@fritzmg fritzmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I actually meant is whether it should go here:

image

Because you either execute

ddev composer create contao/managed-edition:5.3

or (presumably)

ddev composer create contao/contao-demo:5.3

But ultimately this is up to whatever makes the most sense for ddev users.

@fkaminski
Copy link
Copy Markdown
Contributor Author

fkaminski commented Nov 5, 2024

@fritzmg Maybe we should better show the two installation options (Contao & Demo Website) via tabs?

Furthermore I got some tips from the DDEV community regarding the current version v1.23.5.
I would like to include them here as well.

If it's okay with you - WDYT?

@fritzmg
Copy link
Copy Markdown
Contributor

fritzmg commented Nov 5, 2024

@fritzmg Maybe we should better show the two installation options (Contao & Demo Website) via tabs?

May be, but then you will have to integrate the whole explanation from https://github.com/contao/contao-demo?tab=readme-ov-file#using-composer

If it's okay with you - WDYT?

I don't use DDEV, so I have no opinions on this ;)

@fkaminski
Copy link
Copy Markdown
Contributor Author

fkaminski commented Nov 5, 2024

May be, but then you will have to integrate the whole explanation from https://github.com/contao/contao-demo?tab=readme-ov-file#using-composer

Yepp - please give me a try - coming soon ...

@fkaminski
Copy link
Copy Markdown
Contributor Author

fkaminski commented Nov 6, 2024

The last commit seperates installing options (via tabs) concerning Composer/Contao Manager workflow.
Hint about the Contao Demo Website Installation is mentioned (via CM - as announced in slack)

FYI:

  • --create-docroot - This is a outdated ddev flag, removed.
  • using dotenv with newer ddev version
  • ddev exec bin/console ... replaced with ddev exec contao-console ...

@fkaminski fkaminski changed the title DDEV Guide - Add Contao Demo Installation Comment DDEV Guide - Update Contao Installation DDEV Guide Nov 6, 2024
@fkaminski
Copy link
Copy Markdown
Contributor Author

fkaminski commented Nov 7, 2024

The workflow is now identical to the DDEV Contao Quickstart. The PR 6674 has been tested & merged by their community
You can find it here: https://ddev.readthedocs.io/en/latest/users/quickstart/#contao

@fkaminski
Copy link
Copy Markdown
Contributor Author

fkaminski commented Nov 7, 2024

Just as a note to record the current, working procedure regarding the »Contao demo website« installation via Composer here:

mkdir cto-demo && cd cto-demo
ddev config --project-type=php --docroot=public --webserver-type=apache-fpm --php-version=8.2
ddev composer create contao/contao-demo:5.3

ddev composer config --no-plugins allow-plugins.contao-components/installer true
ddev composer config --no-plugins allow-plugins.contao/manager-plugin true
ddev composer install

ddev dotenv set .env.local --database-url=mysql://db:db@db:3306/db --mailer-dsn=smtp://localhost:1025
ddev exec contao-console contao:backup:restore
ddev exec contao-console contao:migrate --no-interaction
ddev exec contao-console contao:user:create --username=admin --name=Administrator --email=[admin@example.com](mailto:admin@example.com) --language=en --admin

ddev launch

Since it currently requires further information (Composer experience - see Add allow-plugins) & the guide should be kept “simple”, I have not included this for the time being.

Copy link
Copy Markdown
Contributor

@fritzmg fritzmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The group ID of the tabs is shared across the whole site, so it should either reference an existing group with the same tab names - or a unique one.

fkaminski and others added 2 commits November 10, 2024 07:56
Co-authored-by: Fritz Michael Gschwantner <fmg@inspiredminds.at>
Co-authored-by: Fritz Michael Gschwantner <fmg@inspiredminds.at>
Copy link
Copy Markdown
Member

@netzarbeiter netzarbeiter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, Franko

@netzarbeiter netzarbeiter merged commit 7397252 into contao:main Nov 12, 2024
@fkaminski fkaminski deleted the pr_ddev_demo branch November 12, 2024 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants