diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index a51547c..7e144ea 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -8,6 +8,14 @@ if [ "$APP_ENV" != "production" ] && [ ! -f vendor/autoload.php ]; then composer install --no-interaction --prefer-dist fi +# In development, re-resolve all boboko/* packages against their local path-repo +# checkouts on every boot, so editing boboko-core and running `./bin/dc-core.sh up` +# is enough. No-op unless the path repo in `_repositories` has been enabled. +if [ "$APP_ENV" != "production" ] && [ -d /var/www/boboko-core ]; then + echo "[entrypoint] Re-resolving boboko/* packages from local path repos..." + composer update "boboko/*" --no-interaction --with-all-dependencies +fi + # In development, the app dir is bind-mounted from a fresh checkout, so package # assets (which the Dockerfile publishes at build time in production) need to be # generated here instead. Cheap and idempotent, safe to repeat on every boot.