From 9f7a6ae01733524f7233cecd231d0b13ed92a0b8 Mon Sep 17 00:00:00 2001 From: Filip Maciejewski Date: Wed, 2 Aug 2023 16:33:30 +0200 Subject: [PATCH] Improve performance on Windows/Mac --- api-platform/docker-compose.override.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api-platform/docker-compose.override.yml b/api-platform/docker-compose.override.yml index 86f8709..3484c87 100644 --- a/api-platform/docker-compose.override.yml +++ b/api-platform/docker-compose.override.yml @@ -10,7 +10,7 @@ services: - ./api/docker/php/conf.d/app.dev.ini:/usr/local/etc/php/conf.d/app.dev.ini:ro # If you develop on Mac or Windows you can remove the vendor/ directory # from the bind-mount for better performance by enabling the next line: - #- /srv/app/vendor + - /srv/app/vendor environment: # See https://xdebug.org/docs/all_settings#mode XDEBUG_MODE: "${XDEBUG_MODE:-off}" @@ -24,6 +24,9 @@ services: target: dev volumes: - ./pwa:/srv/app + # If you develop on Mac or Windows you can remove the node_modules/ directory + # from the bind-mount for better performance by enabling the next line: + - /srv/app/node_modules environment: API_PLATFORM_CREATE_CLIENT_ENTRYPOINT: http://caddy API_PLATFORM_CREATE_CLIENT_OUTPUT: .