-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add Contao recipe to Quickstarts (ddev#6674) [skip ci]
Co-authored-by: Stanislav Zhuk <[email protected]>
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ CMD | |
CMS | ||
CMSes | ||
Colima | ||
Contao | ||
CPUs | ||
CTRL | ||
CentOS | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,54 @@ Please note that you will need to change the PHP version to 7.4 to be able to wo | |
ddev launch | ||
``` | ||
|
||
## Contao | ||
|
||
Further information on the DDEV procedure can also be found in the [Contao documentation](https://docs.contao.org/manual/en/guides/local-installation/ddev/). | ||
|
||
=== "Composer" | ||
|
||
```bash | ||
mkdir my-contao-site && cd my-contao-site | ||
ddev config --project-type=php --docroot=public --webserver-type=apache-fpm --php-version=8.2 | ||
ddev composer create contao/managed-edition:5.3 | ||
|
||
# Set DATABASE_URL and MAILER_DSN in .env.local | ||
ddev dotenv set .env.local --database-url=mysql://db:db@db:3306/db --mailer-dsn=smtp://localhost:1025 | ||
|
||
# Create the database | ||
ddev exec contao-console contao:migrate --no-interaction | ||
|
||
# Create backend user | ||
ddev exec contao-console contao:user:create --username=admin --name=Administrator [email protected] --language=en --password=Password123 --admin | ||
|
||
# Access the administration area | ||
ddev launch contao | ||
``` | ||
|
||
=== "Contao Manager" | ||
|
||
Like most PHP projects, Contao could be installed and updated with Composer. The [Contao Manager](https://docs.contao.org/manual/en/installation/contao-manager/) is a tool that provides a graphical user interface to manage a Contao installation. | ||
|
||
```bash | ||
mkdir my-contao-site && cd my-contao-site | ||
ddev config --project-type=php --docroot=public --webserver-type=apache-fpm --php-version=8.2 | ||
|
||
# set DATABASE_URL and MAILER_DSN in .env.local | ||
ddev dotenv set .env.local --database-url=mysql://db:db@db:3306/db --mailer-dsn=smtp://localhost:1025 | ||
|
||
# Download the Contao Manager | ||
ddev start | ||
ddev exec "wget -O public/contao-manager.phar.php https://download.contao.org/contao-manager/stable/contao-manager.phar" | ||
|
||
# Follow the further steps within the Contao Manager | ||
ddev launch contao-manager.phar.php | ||
``` | ||
|
||
=== "Demo Website" | ||
|
||
The [Contao demo website](https://demo.contao.org/) is maintained for the currently supported Contao versions and can be [optionally installed](https://github.com/contao/contao-demo). | ||
Via the Contao Manager you can simply select this option during the first installation. | ||
|
||
## Craft CMS | ||
|
||
Start a new [Craft CMS](https://craftcms.com) project or retrofit an existing one. | ||
|