Forráskód Böngészése

ap2i : create the .env.local file at build

Olivier Massot 2 éve
szülő
commit
d818388b52
2 módosított fájl, 5 hozzáadás és 2 törlés
  1. 3 0
      docker/ap2i/Dockerfile
  2. 2 2
      docker/ap2i/conf/xdebug.ini

+ 3 - 0
docker/ap2i/Dockerfile

@@ -77,4 +77,7 @@ COPY /docker/ap2i/conf/execution_time.ini /usr/local/etc/php/conf.d
 COPY /docker/ap2i/conf/xdebug.ini /usr/local/etc/php/conf.d
 ######## FACL and Start ########
 
+## Create .env.local file
+RUN echo "APP_ENV=docker" > .env.local
+
 WORKDIR /var/www/html

+ 2 - 2
docker/ap2i/conf/xdebug.ini

@@ -1,10 +1,10 @@
 [xdebug]
-zend_extension=xdebug.so
+;zend_extension=xdebug.so  ;<- this is supposed to be loaded in /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
 xdebug.mode = debug
 xdebug.idekey=PHPSTORM
 xdebug.discover_client_host = 1
 xdebug.max_nesting_level=400
-xdebug.start_with_request=yes
+xdebug.start_with_request=trigger
 xdebug.client_port = 9003
 
 ; Uncomment this line if docker is running on Mac or Windows