Skip to content

Commit

Permalink
Merge pull request #7827 from CakeDC/3.x
Browse files Browse the repository at this point in the history
3.x: Add DDEV section to docs after cakephp type has been released
  • Loading branch information
markstory authored Mar 29, 2024
2 parents fcf8cfc + 57746a9 commit ff6908e
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 7 deletions.
31 changes: 24 additions & 7 deletions en/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,36 @@ Be aware that this is not recommended, as your application can break when the ne
version is released. Additionally, composer does not cache development
branches, so it slows down consecutive composer installs/updates.

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 --php-version 7.4
ddev composer create --prefer-dist cakephp/app:"^3.10"
ddev launch

If you have an existing project::

git clone <your-cakephp-repo>
cd <your-cakephp-project>
ddev config --project-type=cakephp --docroot=webroot --php-version 7.4
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
29 changes: 29 additions & 0 deletions es/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,35 @@ 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 --php-version 7.4
ddev composer create --prefer-dist cakephp/app:"^3.10"
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 ff6908e

Please sign in to comment.