generated from boboko/starter
Feature: Syncing composer .env.example and docker-compose.dev.yml from starter
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user