Skip to content

Commit

Permalink
Merge branch 'release/2.4.47' into craft-webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Aug 8, 2021
2 parents 28f2f77 + a381489 commit 1a2ecd3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# nystudio107/craft Change Log

## 2.4.47 - 2021.08.07
### Added
* Handle both `XDEBUG_SESSION` and `XDEBUG_PROFILE` cookies
* Added `compiled_templates` as a bind mount in `docker-compose.yaml` for IDE autocompletion
* Added `nystudio107/craft-autocomplete` for autocomplete of variables in Twig templates

## 2.4.46 - 2021.07.29
### Added
* Added `putyourlightson/craft-autocomplete` for the Twig + Symfony plugin auto-complete, removed FauxTwigExtension.php
Expand Down
2 changes: 1 addition & 1 deletion cms/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"craftcms/cms": "^3.6.9",
"vlucas/phpdotenv": "^3.4.0",
"yiisoft/yii2-redis": "^2.0.6",
"putyourlightson/craft-autocomplete": "^1.0.0",
"nystudio107/craft-autocomplete": "^1.0.0",
"nystudio107/craft-imageoptimize": "^1.0.0",
"nystudio107/craft-fastcgicachebust": "^1.0.0",
"nystudio107/craft-minify": "^1.2.5",
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ services:
# Specific directories that need to be bind-mounted
- ./cms/storage/logs:/var/www/project/cms/storage/logs:delegated
- ./cms/storage/runtime/compiled_templates:/var/www/project/cms/storage/runtime/compiled_templates:delegated
- ./cms/storage/runtime/compiled_classes:/var/www/project/cms/storage/runtime/compiled_classes:delegated
- ./cms/vendor:/var/www/project/cms/vendor:delegated
# php - run php-fpm with xdebug
php_xdebug:
Expand Down
6 changes: 4 additions & 2 deletions docker-config/nginx/default.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# default Docker DNS server
resolver 127.0.0.11;

map $cookie_XDEBUG_SESSION $my_fastcgi_pass {
# If a cookie doesn't exist, it evaluates to an empty string, so if neither cookie exists, it'll match :
# (empty string on either side of the :), but if either or both cookies are set, it won't match, and will hit the default rule
map $cookie_XDEBUG_SESSION:$cookie_XDEBUG_PROFILE $my_fastcgi_pass {
default php_xdebug;
'' php;
':' php;
}

server {
Expand Down

0 comments on commit 1a2ecd3

Please sign in to comment.