Safety check for running composer install, README

This commit is contained in:
3wc 2021-12-07 14:45:50 +02:00
parent cd7cf577f3
commit 591cff12c1
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
# wordpress-bedrock-docker
## Quick start
1. Clone this repository 1. Clone this repository
2. Copy `src/.env.example` to `src/.env` 2. Copy `src/.env.example` to `src/.env`
3. Run `docker-compose up` 3. Run `docker-compose up`

View File

@ -94,7 +94,9 @@ if [[ "$1" == apache2* ]] || [ "$1" = 'php-fpm' ]; then
# fi # fi
# done # done
# fi # fi
if [ -f composer.json ]; then
composer install composer install
fi
fi fi
exec "$@" exec "$@"