From ede4fa8f69cee78c1027ec11df1ca70a3485683a Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 7 Apr 2022 11:51:30 +1200 Subject: [PATCH] Fix yasd for intellij --- .gitignore | 2 ++ Dockerfile | 2 +- dev/yasd_init.php.stub | 4 ---- docker-compose.yml | 1 + 4 files changed, 4 insertions(+), 5 deletions(-) delete mode 100644 dev/yasd_init.php.stub diff --git a/.gitignore b/.gitignore index 3d6001ca06..cd7eb09eda 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,8 @@ /tests/resources/functions/**/code.tar.gz /app/sdks/* /.idea/ +!/.idea/workspace.xml +!/.idea/php.xml .DS_Store .php_cs.cache debug/ diff --git a/Dockerfile b/Dockerfile index 023e88a205..ab3837b243 100755 --- a/Dockerfile +++ b/Dockerfile @@ -295,7 +295,7 @@ RUN echo extension=redis.so >> /usr/local/etc/php/conf.d/redis.ini RUN echo extension=imagick.so >> /usr/local/etc/php/conf.d/imagick.ini RUN echo extension=yaml.so >> /usr/local/etc/php/conf.d/yaml.ini RUN echo extension=maxminddb.so >> /usr/local/etc/php/conf.d/maxminddb.ini -RUN if [ "$DEBUG" == "true" ]; then printf "zend_extension=yasd \nyasd.debug_mode=remote \nyasd.init_file=/usr/local/dev/yasd_init.php \nyasd.remote_port=9005 \nyasd.log_level=-1" >> /usr/local/etc/php/conf.d/yasd.ini; fi +RUN if [ "$DEBUG" == "true" ]; then printf "zend_extension=yasd \nyasd.debug_mode=remote \nyasd.remote_host=host.docker.internal \nyasd.remote_port=9005 \nyasd.log_level=0" >> /usr/local/etc/php/conf.d/yasd.ini; fi RUN if [ "$DEBUG" == "true" ]; then echo "opcache.enable=0" >> /usr/local/etc/php/conf.d/appwrite.ini; fi RUN echo "opcache.preload_user=www-data" >> /usr/local/etc/php/conf.d/appwrite.ini diff --git a/dev/yasd_init.php.stub b/dev/yasd_init.php.stub deleted file mode 100644 index a7d977fbf7..0000000000 --- a/dev/yasd_init.php.stub +++ /dev/null @@ -1,4 +0,0 @@ -