File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,23 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
17
17
18
18
# The first time volumes are mounted, the project needs to be recreated
19
19
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 -
24
29
25
- cp -Rp tmp/. .
26
30
rm -Rf tmp/
27
31
elif [ " $APP_ENV " != ' prod' ]; then
28
32
rm -f .env.local.php
29
- composer install --prefer-dist --no-progress --no-interaction
30
33
fi
31
34
35
+ composer install --prefer-dist --no-progress --no-interaction
36
+
32
37
if grep -q ^DATABASE_URL= .env; then
33
38
echo " Waiting for db to be ready..."
34
39
ATTEMPTS_LEFT_TO_REACH_DATABASE=60
You can’t perform that action at this time.
0 commit comments