Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Doug Hatcher
committed
Jun 19, 2022
1 parent
8a52c24
commit 171f7a9
Showing
5 changed files
with
29 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: Usage | ||
description: Basic usage conventions and information | ||
--- | ||
|
||
# .magento-cli directories | ||
|
||
A project repostiory can override the default configuration by storing replacement services or tasks yaml directories in `.magento-cli`. For example, let's say you would like to change the database docker composition, you canc create `.magento-cli/services/database.yaml` and this file will be interpreted when you run `magento serve` instead of the version sourced by magento-cli. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env variant | ||
definitions: | ||
parameters: &global-parameters | ||
- name: host | ||
type: string | ||
description: hostname to serve | ||
default: 0.0.0.0 | ||
- name: port | ||
type: string | ||
description: php server port | ||
default: "8080" | ||
- name: routes | ||
type: string | ||
description: routes used for local development server | ||
default: $(pwd)/pub/ $(pwd)/phpserver/router.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env variant | ||
script: | | ||
CMD=$(echo {{ index .args }} | sed -r 's/(\[|\])//g') | ||
$MAGECLI_PHP_CMD bin/magento $CMD | ||
$MAGECLI_PHP_CMD bin/magento $CMD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,6 @@ | ||
#!/usr/bin/env variant | ||
tasks: | ||
serve: | ||
parameters: | ||
- name: host | ||
type: string | ||
description: hostname to serve | ||
default: 0.0.0.0 | ||
- name: port | ||
type: string | ||
description: php server port | ||
default: "8080" | ||
- name: routes | ||
tyoe: string | ||
description: routes used for local development server | ||
default: $(pwd)/pub/ $(pwd)/phpserver/router.php | ||
parameters: *global-parameters | ||
script: | | ||
php -S {{ get "host" }}:{{ get "port" }} -t {{ get "routes" }} | ||
echo {{ index .args }} php -S {{ get "host" }}:{{ get "port" }} -t {{ get "routes" }} |