Skip to content

Commit

Permalink
1094 setting up phpstorm for development (#1110)
Browse files Browse the repository at this point in the history
* Add: devcontainer support for JetBrains IDEs, including debugging support for PHPStorm using xdebug session

* Mod: Not required settings removed

---------

Co-authored-by: gluafamichl <>
  • Loading branch information
gluafamichl authored Nov 4, 2024
1 parent 319c619 commit c18333e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@
"NODE_OPTIONS": "--use-openssl-ca"
},
"remoteUser": "vscode",
"overrideCommand": false,
"postStartCommand": "composer install --working-dir=/var/www/html/"
}
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,12 @@ ENTRYPOINT [ "docker-entrypoint.sh" ]
FROM hashtopolis-server-base as hashtopolis-server-dev

# Setting up development requirements, install xdebug
RUN yes | pecl install xdebug \
RUN yes | pecl install xdebug && docker-php-ext-enable xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.mode = debug" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.start_with_request = yes" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.client_port = 9003" >> /usr/local/etc/php/conf.d/xdebug.ini \
&& echo "xdebug.idekey = PHPSTORM" >> /usr/local/etc/php/conf.d/xdebug.ini \
\
# Configuring PHP
&& touch "/usr/local/etc/php/conf.d/custom.ini" \
Expand Down

0 comments on commit c18333e

Please sign in to comment.