mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-22 17:33:12 +00:00
add doc for xdebug for macos,
fix worker cmd
This commit is contained in:
2
.env
2
.env
@@ -59,7 +59,7 @@ XDEBUG_ENABLED=1
|
||||
XDEBUG_PROFILER_ENABLED=0
|
||||
IDE_KEY=PHPSTORM
|
||||
PHRASEANET_SUBNET_IPS=172.32.0.0/16
|
||||
PHRASEANET_GATEWAY_IP=172.32.0.1
|
||||
XDEBUG_REMOTE_HOST=172.32.0.1
|
||||
PHP_IDE_CONFIG=serverName=docker-server-phraseanet
|
||||
|
||||
# Volumes location for dev
|
||||
|
@@ -116,7 +116,7 @@ CMD ["php-fpm", "-F"]
|
||||
|
||||
FROM phraseanet-fpm as phraseanet-worker
|
||||
ENTRYPOINT ["docker/phraseanet/worker/entrypoint.sh"]
|
||||
CMD ["docker/phraseanet/worker/scheduler-run.sh"]
|
||||
CMD ["bin/console", "task-manager:scheduler:run"]
|
||||
|
||||
#########################################################################
|
||||
# phraseanet-nginx
|
||||
|
@@ -112,6 +112,14 @@ For PhpStorm, you can follow this example:
|
||||
|
||||
> Configure the `Absolute path on the server` to `/var/alchemy/Phraseanet` at the project root path (i.e. `~/projects/Phraseanet`).
|
||||
|
||||
#### Xdebug on MacOS
|
||||
|
||||
You have to set the following env:
|
||||
```bash
|
||||
XDEBUG_REMOTE_HOST=host.docker.internal
|
||||
```
|
||||
|
||||
> Don't forget to recreate your container (`docker-compose up -d phraseanet`)
|
||||
|
||||
# With Vagrant (deprecated)
|
||||
|
||||
|
@@ -30,7 +30,7 @@ services:
|
||||
phraseanet:
|
||||
environment:
|
||||
- XDEBUG_ENABLED
|
||||
- XDEBUG_CONFIG=remote_host=${PHRASEANET_GATEWAY_IP} idekey=${IDE_KEY} remote_enable=1 profiler_enable=${XDEBUG_PROFILER_ENABLED} profiler_output_dir=/var/alchemy/Phraseanet/cache/profiler
|
||||
- XDEBUG_CONFIG=remote_host=${XDEBUG_REMOTE_HOST} idekey=${IDE_KEY} remote_enable=1 profiler_enable=${XDEBUG_PROFILER_ENABLED} profiler_output_dir=/var/alchemy/Phraseanet/cache/profiler
|
||||
- PHP_IDE_CONFIG
|
||||
volumes:
|
||||
- .:/var/alchemy/Phraseanet
|
||||
|
@@ -15,4 +15,4 @@ if [ ${XDEBUG_ENABLED} == "1" ]; then
|
||||
docker-php-ext-enable xdebug
|
||||
fi
|
||||
|
||||
bash -e docker-php-entrypoint $@
|
||||
runuser -u app "$@"
|
||||
|
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
runuser app -c 'php bin/console task-manager:scheduler:run'
|
Reference in New Issue
Block a user