Skip to content

Commit

Permalink
Add DDEV section to docs after cakephp type has been released
Browse files Browse the repository at this point in the history
  • Loading branch information
ajibarra committed Mar 27, 2024
1 parent 47b0bd7 commit ebdc79f
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 7 deletions.
30 changes: 23 additions & 7 deletions en/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,35 @@ Each time you run ``php composer.phar update`` you will receive patch
releases for this minor version. You can instead change this to ``^4.4`` to
also receive the latest stable minor releases of the ``4.x`` branch.

Installation using Oven
Installation using DDEV
-----------------------

Another quick way to install CakePHP is via `Oven <https://github.com/CakeDC/oven>`_.
It is a small PHP script which checks the necessary system requirements,
and creates a new CakePHP application.
Another quick way to install CakePHP is via `DDEV <https://ddev.com/>`_.
It is an open source tool for launching local web development environments.

If you want to configure a new project, you just need::

mkdir my-cakephp-app
cd my-cakephp-app
ddev config --project-type=cakephp --docroot=webroot
ddev composer create --prefer-dist cakephp/app:~4.0
ddev launch

If you have an existing project::

git clone <your-cakephp-repo>
cd <your-cakephp-project>
ddev config --project-type=cakephp --docroot=webroot
ddev composer install
ddev launch

Please check `DDEV Docs <https://ddev.readthedocs.io/>`_ for details on how to install / update DDEV.

.. note::

IMPORTANT: This is not a deployment script. It is aimed to help developers
install CakePHP for the first time and set up a development environment
quickly. Production environments should consider several other factors, like
file permissions, virtualhost configuration, etc.
to set up a development environment quickly. It is not intended for
production environments.

Permissions
===========
Expand Down
30 changes: 30 additions & 0 deletions es/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,36 @@ Donde ``<branch>`` es el nombre del branch que quieres seguir. Cada vez que
ejecutes ``php composer.phar update`` recibirás las últimas actualizaciones del
branch seleccionado.

Instalación usando DDEV
-----------------------

Otra manera rápida de instalar CakePHP es via `DDEV <https://ddev.com/>`_.
DDEV es una herramienta de código abierto para lanzar ambientes de desarrollo web en local.

Si quieres configurar un nuevo proyecto, sólo necesitas ejecutar::

mkdir my-cakephp-app
cd my-cakephp-app
ddev config --project-type=cakephp --docroot=webroot
ddev composer create --prefer-dist cakephp/app:~4.0
ddev launch

Si tienes un proyecto existente::

git clone <your-cakephp-repo>
cd <your-cakephp-project>
ddev config --project-type=cakephp --docroot=webroot
ddev composer install
ddev launch

Por favor revisa la `Documentación de DDEV <https://ddev.readthedocs.io/>`_ para más detalles de cómo instalar / actualizar DDEV.

.. note::

IMPORTANTE: Ésto no es un script de despliegue. Su objetivo es ayudar desarrolladores a
configurar ambientes de desarrollo rápidamente. En ningún caso su intención es que sea utilizado
en ambientes de producción.

Permisos
========

Expand Down

0 comments on commit ebdc79f

Please sign in to comment.