Added git specific file copy command to docs.

With the new instructions the copying to an existing project doesn't
destoy the cloned symfony-docker repository.
This commit is contained in:
m1mir 2024-03-27 08:52:15 +01:00 committed by Maxime Helias
parent 4aed74bf8b
commit 645c384e16

View File

@ -2,9 +2,13 @@
It's also possible to use Symfony Docker with existing projects! It's also possible to use Symfony Docker with existing projects!
First, [download this skeleton](https://github.com/dunglas/symfony-docker). If you clone the Git repository, be sure to remove the `.git` directory to prevent conflicts with the `.git` directory already in your existing project. First, [download this skeleton](https://github.com/dunglas/symfony-docker).
Then, copy the Docker-related files from the skeleton to your existing project: If you cloned the Git repository you can copy the files from the repository using git and tar:
git archive --format=tar HEAD | tar -xC my-existing-project/
If you downloaded the skeleton with zip you can just copy the extracted files:
cp -Rp symfony-docker/. my-existing-project/ cp -Rp symfony-docker/. my-existing-project/