You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sets APP_ROOT/vendor/bin and APP_ROOT/bin as last checked in $PATH, so if one does a docker exec -ti php sh -c "drush status" They will see: Drush script : /usr/local/bin/drush Instead of: Drush script : /var/www/html/vendor/drush/drush/drush
If I have a script installed via composer, I would think it would take precedence over /usr/local/bin.
The $PATH is currently: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/wodby/.composer/vendor/bin:/var/www/html/vendor/bin:/var/www/html/bin
I would think: ENV PATH="/home/wodby/.composer/vendor/bin:${APP_ROOT}/vendor/bin:${APP_ROOT}/bin:${PATH}"
would be more useful in the Dockerfile.
With how it is, one cannot use XDebug to debug CLI scripts since the Drush files live outside the sites shared volume.
The text was updated successfully, but these errors were encountered:
php/7/Dockerfile
Line 21 in 9af347b
Sets APP_ROOT/vendor/bin and APP_ROOT/bin as last checked in $PATH, so if one does a
docker exec -ti php sh -c "drush status"
They will see: Drush script : /usr/local/bin/drush
Instead of: Drush script : /var/www/html/vendor/drush/drush/drush
If I have a script installed via composer, I would think it would take precedence over /usr/local/bin.
The $PATH is currently:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/wodby/.composer/vendor/bin:/var/www/html/vendor/bin:/var/www/html/bin
I would think:
ENV PATH="/home/wodby/.composer/vendor/bin:${APP_ROOT}/vendor/bin:${APP_ROOT}/bin:${PATH}"
would be more useful in the Dockerfile.
With how it is, one cannot use XDebug to debug CLI scripts since the Drush files live outside the sites shared volume.
The text was updated successfully, but these errors were encountered: