Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

MCLOUD-7120: Add command which validate .magento.env.yaml locally before push #8486

Merged
merged 6 commits into from
Jan 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/cloud/project/magento-env-yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,20 @@ stage:
deploy:
CLEAN_STATIC_FILES: false
```

## Validate configuration file

Use the following CLI command to validate the `.magento.env.yaml` configuration file before pushing changes to the remote Cloud environment.

```bash
php ./vendor/bin/ece-tools cloud:config:validate
```

The following sample response provides a list of items to correct:

```terminal
Environment configuration is not valid. Correct the following items in your .magento.env.yaml file:
The SCD_THREADS variable contains an invalid value of type string. Use the following type: integer.
The SCD_STRATEGY variable contains an invalid value fast. Use one of the available value options: compact, quick, standard.
The NOT_EXIST_OPTION variable is not allowed in configuration.
```