Skip to content

Commit da1c917

Browse files
committed
Update config
1 parent 72a4de5 commit da1c917

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Taskfile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ vars:
2121
FILESQL: '{{.FILESQL | default "dump.sql"}}'
2222
FOLDERLAMPY: '{{.FOLDERLAMPY | default "lampy"}}'
2323
SERVERNAME: '{{.SERVERNAME | default "symfony.traefik.me"}}'
24-
DOCKERCOMPOSEFILE: '{{.DOCKERCOMPOSEFILE | default "docker-compose.yml"}}'
24+
DOCKERCOMPOSEFILE: '{{.DOCKERCOMPOSEFILE | default "docker-compose-lampy.yml"}}'
2525
SYMFONYVERSION: '{{.SYMFONYVERSION | default "7.3"}}'
2626

2727
tasks:
@@ -118,7 +118,7 @@ tasks:
118118
desc: "Installation initiale de Composer et des dépendances"
119119
silent: true
120120
cmds:
121-
- docker run --rm -v $(pwd)/apps:/var/www -w /var/www $(pwd)/apps:/var/www -w /var/www $(awk '/www:/ {f=1} f && /image:/ {print $2; exit}' {{.DOCKERCOMPOSEFILE}}) symfony composer install
121+
- docker run --rm -v $(pwd)/apps:/var/www -w /var/www $(awk '/www:/ {f=1} f && /image:/ {print $2; exit}' {{.DOCKERCOMPOSEFILE}}) symfony composer install
122122

123123
symfony:waiting:
124124
desc: "Attend que les services soient opérationnels"
@@ -141,7 +141,7 @@ tasks:
141141
desc: "Crée un nouveau projet Symfony dans le dossier apps"
142142
silent: true
143143
cmds:
144-
- docker run --rm -v $(pwd):/var/www -w /var/www -e COMPOSER_MEMORY_LIMIT=512M -e HOME=/var/www --user $(id -u):$(id -g) $(pwd)/apps:/var/www -w /var/www $(awk '/www:/ {f=1} f && /image:/ {print $2; exit}' {{.DOCKERCOMPOSEFILE}}) sh -c "git config --global user.name 'Symfony Project' && git config --global user.email 'symfony@example.com' && symfony new apps --version='{{.SYMFONYVERSION}}' --webapp"
144+
- docker run --rm -v $(pwd):/var/www -w /var/www -e COMPOSER_MEMORY_LIMIT=512M -e HOME=/var/www --user $(id -u):$(id -g) $(awk '/www:/ {f=1} f && /image:/ {print $2; exit}' {{.DOCKERCOMPOSEFILE}}) sh -c "git config --global user.name 'Symfony Project' && git config --global user.email 'symfony@example.com' && symfony new apps --version='{{.SYMFONYVERSION}}' --webapp"
145145
- rm -rf ./apps/.git
146146
- rm -rf ./.gitconfig
147147

0 commit comments

Comments
 (0)