diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index beaa17624..21d9c6df3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -346,8 +346,7 @@ If you are in PHP Storm you don't need any plugin. Below are the settings requir 1. Create an init file. 2. Duplicate **dev/yasd_init.php.stub** file and name it **dev/yasd_init.php**. -3. Change the IP address to your development machine's IP. Without the proper IP address, the debugger won't connect. -4. Set **DEBUG** build arg in **appwrite** service in **docker-compose.yml** file. +3. Set **DEBUG** build arg in **appwrite** service in **docker-compose.yml** file. ### VS Code Launch Configuration diff --git a/Dockerfile b/Dockerfile index 392f4de5b..050ccab3c 100755 --- a/Dockerfile +++ b/Dockerfile @@ -182,7 +182,7 @@ RUN chmod +x /usr/local/bin/doctor && \ RUN mkdir -p /etc/letsencrypt/live/ && chmod -Rf 755 /etc/letsencrypt/live/ # Enable Extensions -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.init_file=/usr/src/code/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 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 index a7d977fbf..efcc37c0b 100644 --- a/dev/yasd_init.php.stub +++ b/dev/yasd_init.php.stub @@ -1,4 +1,4 @@