Skip to content

Commit 06a8dc9

Browse files
author
ironex
committed
Add and bind the .composer folder to project
1 parent d07ee7a commit 06a8dc9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
magento
2-
docker/php-fpm/auth.json
2+
docker/php-fpm/.composer/auth.json
33
.idea
44
.DS_Store

bin/new-project.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ then
2626
mkdir $magento
2727
fi
2828

29-
# Create auth.json file if it does not exist
30-
auth="auth.json"
29+
# Create .composer folder if it does not exist
30+
composer=".composer"
3131

32-
if test -f "$auth"; then
33-
echo "" > docker/php-fpm/auth.json
32+
if test -d "$composer"; then
33+
mkdir $composer
3434
fi
3535

3636
# Build images and create and start containers

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
volumes:
1616
- ./magento:/home/dockeruser/magento
1717
- ./docker/php-fpm/php.ini:/usr/local/etc/php/php.ini
18-
- ./docker/php-fpm/auth.json:/home/dockeruser/.composer/auth.json
18+
- ./docker/php-fpm/.composer:/home/dockeruser/.composer
1919

2020
app-server:
2121
build:

0 commit comments

Comments
 (0)