Skip to content

Commit 195e740

Browse files
author
Julien Neuhart
committed
Use composer option --prefer-source by default: not ideal for all users, but only way to make it work on a fresh install with Vagrant
1 parent 0c6c394 commit 195e740

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ services:
5959
PHP_EXTENSION_INTL: "1"
6060
PHP_INI_MEMORY_LIMIT: "1G"
6161
STARTUP_COMMAND_1: "touch .env" # Create a fake .env file so that Symfony does not complain on startup.
62-
STARTUP_COMMAND_2: "composer install || composer install --pref-source" # --pref-source might be required for Vagrant user.
62+
STARTUP_COMMAND_2: "composer install --prefer-source" # --prefer-source might be required for Vagrant user.
6363
STARTUP_COMMAND_3: "php bin/console doctrine:migrations:migrate -n --allow-no-migration" #FIXME: if no flag --allow-no-migration, the command fails. Why?
6464
STARTUP_COMMAND_4: "php bin/console app:init-storage:minio"
6565
# Symfony.

src/api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ composer require [--dev] [package]
8484
As we're using Symfony, make sure to choose the package with Symfony support (aka bundle) if available.
8585

8686
**Vagrant user might encounter some issues with Composer.
87-
A workaround solution is to add the flag `--pref-source` to your Composer command.**
87+
A workaround solution is to add the flag `--prefer-source` to your Composer command.**
8888

8989
From time to time, don't forget to update the dependencies:
9090

0 commit comments

Comments
 (0)