Skip to content

Commit ef76b9f

Browse files
author
Doug Hatcher
committed
more variable passthru
1 parent 71a9772 commit ef76b9f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

tasks/_global.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ definitions:
66
export MAGECLI_DB_TAG={{ get "db-image-tag" }}
77
export MAGECLI_ES_IMAGE={{ get "es-image-name" }}
88
export MAGECLI_ES_TAG={{ get "es-image-tag" }}
9+
export MAGECLI_PHP_BIN_CMD={{ get "php-bin-cmd" }}
910

1011
parameters: &global
1112
- name: project
@@ -28,7 +29,7 @@ definitions:
2829
description: routes used for local development server
2930
default: $(pwd)/pub/ $(pwd)/phpserver/router.php
3031

31-
- name: php-cmd
32+
- name: php-bin-cmd
3233
type: string
3334
description: default command to use to trigger local php server
3435
default: php -d memory_limit=-1 -d max_input_time=3600 -d max_input_vars=10000

tasks/install.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ tasks:
55
description: installs magento to the backend services
66
parameters: *global
77
script:
8-
- *envvars
98
- |
109
php -d memory_limit=-1 bin/magento setup:install \
1110
--base-url=http://{{ get "host" }}:{{ get "port" }} \

tasks/passthru.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env variant
22
interactive: true
3-
parameters: *global
43
script: |
54
CMD=$(echo {{ index .args }} | sed -r 's/(\[|\])//g')
6-
echo {{ get "php-bin-cmd" }} bin/magento $CMD
5+
php -d memory_limit=-1 -d max_input_vars=10000 bin/magento $CMD

tasks/serve.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env variant
2+
23
tasks:
34
serve:
4-
parameters: *global
5-
script: |
6-
COMMAND="{{ get "php-bin-cmd" }} -S {{ get "host" }}:{{ get "port" }} -t {{ get "routes" }}"
7-
echo $COMMAND
8-
$COMMAND
5+
parameters: *global
6+
script:
7+
- COMMAND="{{ get "php-bin-cmd" }} -S {{ get "host" }}:{{ get "port" }} -t {{ get "routes" }}"
8+
- echo $COMMAND
9+
- $COMMAND

0 commit comments

Comments
 (0)