File tree 4 files changed +8
-6
lines changed
4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 16
16
build : # # creates binary
17
17
go build ${LDFLAGS} .
18
18
install : build # # compiles and installs into system
19
- sudo cp magento-cli /usr/local/bin/magento
20
- sudo chmod +x /usr/local/bin/magento
19
+ rm ~ /.magento-cloud/bin/magento
20
+ cp ./magento-cli ~ /.magento-cloud/bin/magento
21
+ sudo chmod +x ~ /.magento-cloud/bin/magento
21
22
run : # # run the command through go, accepts args i.e. `make run -- build -h`
22
23
go run ${LDFLAGS} ./main.go $(RUN_ARGS )
23
24
test : build
Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ definitions:
28
28
description : routes used for local development server
29
29
default : $(pwd)/pub/ $(pwd)/phpserver/router.php
30
30
31
- - name : php-bin- cmd
31
+ - name : php-cmd
32
32
type : string
33
33
description : default command to use to trigger local php server
34
- default : php -d memory_limit=-1 -d max_input_time=3600 -d max_input_vars=10000 -S
34
+ default : php -d memory_limit=-1 -d max_input_time=3600 -d max_input_vars=10000
35
35
36
36
- name : php-bin-path
37
37
type : string
Original file line number Diff line number Diff line change 1
1
# !/usr/bin/env variant
2
2
interactive : true
3
+ parameters : *global
3
4
script : |
4
5
CMD=$(echo {{ index .args }} | sed -r 's/(\[|\])//g')
5
- $MAGECLI_PHP_CMD bin/magento $CMD
6
+ echo {{ get "php-bin-cmd" }} bin/magento $CMD
Original file line number Diff line number Diff line change 3
3
serve :
4
4
parameters : *global
5
5
script : |
6
- COMMAND="{{ get "php-bin-cmd" }} {{ get "host" }}:{{ get "port" }} -t {{ get "routes" }}"
6
+ COMMAND="{{ get "php-bin-cmd" }} -S {{ get "host" }}:{{ get "port" }} -t {{ get "routes" }}"
7
7
echo $COMMAND
8
8
$COMMAND
You can’t perform that action at this time.
0 commit comments