mirror of
https://github.com/daledavies/jump.git
synced 2025-11-03 03:46:08 +01:00
Add support for profiling via xdebug
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
/node_modules
|
/node_modules
|
||||||
|
/xdebug
|
||||||
*/vendor
|
*/vendor
|
||||||
docker-compose.yaml
|
docker-compose.yaml
|
||||||
@@ -62,6 +62,9 @@ RUN mkdir -p /var/www/cache/application \
|
|||||||
/var/www/cache/application \
|
/var/www/cache/application \
|
||||||
&& chmod +x /usr/local/bin/entrypoint.sh
|
&& chmod +x /usr/local/bin/entrypoint.sh
|
||||||
|
|
||||||
|
RUN mkdir -p /tmp/xdebug \
|
||||||
|
&& chown -R jumpapp:jumpapp /tmp/xdebug
|
||||||
|
|
||||||
# Expose the port we configured for nginx.
|
# Expose the port we configured for nginx.
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,10 @@ if [ -z "${DEVELOPMENT-}" ]; then
|
|||||||
echo >&2 "";
|
echo >&2 "";
|
||||||
echo >&2 "-------------------------------------------------------------"
|
echo >&2 "-------------------------------------------------------------"
|
||||||
echo >&2 "";
|
echo >&2 "";
|
||||||
|
|
||||||
|
else
|
||||||
|
echo >&2 "- Setting correct ownership of xdebug dir"
|
||||||
|
chown -R jumpapp:jumpapp /tmp/xdebug
|
||||||
fi
|
fi
|
||||||
|
|
||||||
php-fpm8
|
php-fpm8
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
zend_extension=xdebug.so
|
zend_extension=xdebug.so
|
||||||
|
|
||||||
xdebug.mode=debug
|
xdebug.mode=debug,profile
|
||||||
xdebug.discover_client_host = true
|
xdebug.discover_client_host = true
|
||||||
xdebug.start_with_request=trigger
|
xdebug.start_with_request=trigger
|
||||||
xdebug.log="/tmp/xdebug.log"
|
xdebug.log="/tmp/xdebug.log"
|
||||||
|
xdebug.output_dir="/tmp/xdebug"
|
||||||
|
xdebug.profiler_output_name = %s.%R.%p.%r
|
||||||
Reference in New Issue
Block a user