Skip to content

Commit 4a10c5b

Browse files
committed
wip
1 parent c528b3d commit 4a10c5b

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

docker/php/docker-entrypoint.sh

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,23 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
1717

1818
# The first time volumes are mounted, the project needs to be recreated
1919
if [ ! -f composer.json ]; then
20-
composer create-project "$SKELETON $SYMFONY_VERSION" tmp --stability="$STABILITY" --prefer-dist --no-progress --no-interaction
21-
jq '.extra.symfony.docker=true' tmp/composer.json >tmp/composer.tmp.json
22-
rm tmp/composer.json
23-
mv tmp/composer.tmp.json tmp/composer.json
20+
composer create-project "$SKELETON $SYMFONY_VERSION" tmp --stability="$STABILITY" --prefer-dist --no-progress --no-interaction --no-install
21+
22+
cd tmp
23+
jq '.extra.symfony.docker=true' composer.json > composer.tmp.json
24+
ls
25+
rm composer.json
26+
mv composer.tmp.json composer.json
27+
cp -Rp . ..
28+
cd -
2429

25-
cp -Rp tmp/. .
2630
rm -Rf tmp/
2731
elif [ "$APP_ENV" != 'prod' ]; then
2832
rm -f .env.local.php
29-
composer install --prefer-dist --no-progress --no-interaction
3033
fi
3134

35+
composer install --prefer-dist --no-progress --no-interaction
36+
3237
if grep -q ^DATABASE_URL= .env; then
3338
echo "Waiting for db to be ready..."
3439
ATTEMPTS_LEFT_TO_REACH_DATABASE=60

0 commit comments

Comments
 (0)