We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 908379f commit e7cccf7Copy full SHA for e7cccf7
.ddev/commands/web/localdev
@@ -8,7 +8,11 @@ if [ ! -d "localdev/" ]
8
then
9
mkdir "localdev/"
10
echo "Directory created."
11
- php vendor/bin/composer config repositories.local '{"type": "path", "url": "./localdev/*", "canonical": "false"}'
+fi
12
+
13
+if ! grep -q './localdev/*' composer.json; then
14
+ php vendor/bin/composer config repositories.local '{"type": "path", "url": "./localdev/*", "canonical": false}'
15
+ echo "Patched composer.json."
16
fi
17
18
cd "localdev/"
0 commit comments