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

Commit

Permalink
MAGECLOUD-2014 smart wizards corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
hguthrie committed Apr 24, 2018
1 parent b9db1c1 commit 424eebb
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 30 deletions.
4 changes: 2 additions & 2 deletions _data/toc/cloud-guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ pages:
url: /cloud/env/log-handlers.html
versions: ["2.1","2.2","2.3"]

- label: Configuration wizard
url: /cloud/env/config-wizard.html
- label: Smart wizards
url: /cloud/env/smart-wizards.html
versions: ["2.1","2.2","2.3"]

- label: Environment variables
Expand Down
28 changes: 0 additions & 28 deletions guides/v2.1/cloud/env/config-wizard.md

This file was deleted.

43 changes: 43 additions & 0 deletions guides/v2.1/cloud/env/smart-wizards.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
layout: default
group: cloud
title: Smart wizards
version: 2.1
github_link: cloud/env/smart-wizards.md
functional_areas:
- Cloud
- Setup
- Configuration
---

The smart wizards can assist you in determining if your Cloud configuration follows best practices by verifying the following:

- Use the `.magento.env.yaml` file
- Enabled SCD on-demand
- Enabled SCD for the build stage
- Enabled SCD for the deploy stage
<!-- - Enabled the master-slave connections for database and Redis service configuration -->

Each of the smart wizard commands provides a verification response and, if applicable, a recommendation for the proper configuration.

Command | Description
`wizard:scd-on-demand` | Check if the `SCD_ON_DEMAND` global environment variable is set to `true`.
`wizard:scd-on-build ` | Check if the `SCD_ON_DEMAND` global environment variable is set to `false` and the `SKIP_SCD` environment variable is set to `false` for the build stage. Verifies the `config.php` file contains information for stores, store groups, and websites.
`wizard:scd-on-deploy` | Check if the `SCD_ON_DEMAND` global environment variable is set to `false` and the `SKIP_SCD` environment variable is set to `true` for the build stage. Verifies the `config.php`file does _NOT_ contain the list of stores, store groups, and websites with related information.

For example, to verify your configuration properly enables the SCD on-demand feature:

```bash
wizard:scd-on-demand
```

A successful configuration returns:
```
SCD on demand is enabled
```

A failed configuration returns:

```
SCD on demand is disabled
```
1 change: 1 addition & 0 deletions guides/v2.2/cloud/env/smart-wizards.md
1 change: 1 addition & 0 deletions guides/v2.3/cloud/env/smart-wizards.md

0 comments on commit 424eebb

Please sign in to comment.