From 4bfeca812e6ea98b0b2b0d79e8945af331b32add Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Dugat?= Date: Mon, 24 Sep 2018 08:22:38 +0200 Subject: [PATCH] DockerSync symfony apps improvements --- .../Resources/views/Base/docker-sync.yml.twig | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Application/Resources/views/Base/docker-sync.yml.twig b/src/Application/Resources/views/Base/docker-sync.yml.twig index d3b3164..e96a299 100644 --- a/src/Application/Resources/views/Base/docker-sync.yml.twig +++ b/src/Application/Resources/views/Base/docker-sync.yml.twig @@ -20,4 +20,14 @@ syncs: - "var/cache/*" {% endif %} +{% if service.options.app_type|default(null) == 'symfony' %} + {{ project.identifier }}-{{ service.identifier }}-vendors-sync: + src: "{{ service.path }}/vendor" + dest: "/opt/apps/{{ service.path }}/vendor" + sync_args: "--delete" + sync_strategy: "rsync" + sync_host_port: 10872 + sync_excludes: ["bin/"] +{% endif %} + {% endfor %}