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

Commit 6246806

Browse files
Merge pull request #5684 from magento/5248-ol-list-prefix-12
Fixed ordered list prefix (MD029) - Group 12
2 parents 02ff742 + e623810 commit 6246806

8 files changed

+314
-243
lines changed

guides/v2.2/config-guide/cli/config-cli-subcommands-config-mgmt-set.md

Lines changed: 50 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -50,55 +50,69 @@ To set a configuration value, you must know at least one of the following:
5050

5151
See the following references:
5252

53-
* [Sensitive and system-specific configuration paths reference]({{ page.baseurl }}/config-guide/prod/config-reference-sens.html)
54-
* [Payment configuration paths reference]({{ page.baseurl }}/config-guide/prod/config-reference-payment.html)
55-
* [Other configuration paths reference]({{ page.baseurl }}/config-guide/prod/config-reference-most.html)
56-
* [Magento Enterprise B2B Extension configuration paths reference]({{ page.baseurl }}/config-guide/prod/config-reference-b2b.html)
53+
* [Sensitive and system-specific configuration paths reference]({{ page.baseurl }}/config-guide/prod/config-reference-sens.html)
54+
* [Payment configuration paths reference]({{ page.baseurl }}/config-guide/prod/config-reference-payment.html)
55+
* [Other configuration paths reference]({{ page.baseurl }}/config-guide/prod/config-reference-most.html)
56+
* [Magento Enterprise B2B Extension configuration paths reference]({{ page.baseurl }}/config-guide/prod/config-reference-b2b.html)
5757

5858
### Find the scope code
5959

6060
You can find the scope code either in the Magento database or in the Magento [Admin](https://glossary.magento.com/admin). See one of the following sections for more information.
6161

6262
#### Find the scope code in the Admin
6363

64-
1. Log into Admin as a user who can view websites and store views.
65-
2. Click **Stores** > **Settings** > **All Stores**.
66-
3. In the right pane, click the name of the website or store view to see its code.
64+
1. Log into Admin as a user who can view websites and store views.
65+
1. Click **Stores** > **Settings** > **All Stores**.
66+
1. In the right pane, click the name of the website or store view to see its code.
6767

68-
The following figure shows a sample website code.
68+
The following figure shows a sample website code.
6969

70-
![Get a website or store view code from the Admin]({{ site.baseurl }}/common/images/config_configset_website-code.png){:width="450px"}
71-
4. Continue with [Set configuration values](#config-cli-config-set).
70+
![Get a website or store view code from the Admin]({{ site.baseurl }}/common/images/config_configset_website-code.png){:width="450px"}
71+
72+
1. Continue with [Set configuration values](#config-cli-config-set).
7273

7374
#### Find the scope code in the database
7475

7576
Scope codes for websites and store views are stored in the Magento database in the `store_website` and `store` tables, respectively.
7677

7778
To find the values in the database:
7879

79-
1. Connect to the Magento database:
80+
1. Connect to the Magento database:
81+
82+
```bash
83+
mysql -u <magento database username> -p
84+
```
8085

81-
mysql -u <magento database username> -p
82-
2. Enter the following commands:
86+
1. Enter the following commands:
8387

84-
use <magento database name>;
85-
SELECT * FROM store;
86-
SELECT * FROM store_website;
88+
```shell
89+
use <magento database name>;
90+
```
8791

88-
A sample result follows:
92+
```shell
93+
SELECT * FROM store;
94+
```
8995

90-
[mysql]> SELECT * FROM store_website;
91-
+------------+-------+--------------+------------+------------------+------------+
92-
| website_id | code | name | sort_order | default_group_id | is_default |
93-
+------------+-------+--------------+------------+------------------+------------+
94-
| 0 | admin | Admin | 0 | 0 | 0 |
95-
| 1 | base | Main Website | 0 | 1 | 1 |
96-
| 2 | test1 | Test Website | 0 | 3 | 0 |
97-
+------------+-------+--------------+------------+------------------+------------+
96+
```shell
97+
SELECT * FROM store_website;
98+
```
9899

99-
Use the value in the `code` column.
100+
A sample result follows:
100101

101-
3. Continue with the next section.
102+
```terminal
103+
[mysql]> SELECT * FROM store_website;
104+
+------------+-------+--------------+------------+------------------+------------+
105+
| website_id | code | name | sort_order | default_group_id | is_default |
106+
+------------+-------+--------------+------------+------------------+------------+
107+
| 0 | admin | Admin | 0 | 0 | 0 |
108+
| 1 | base | Main Website | 0 | 1 | 1 |
109+
| 2 | test1 | Test Website | 0 | 3 | 0 |
110+
+------------+-------+--------------+------------+------------------+------------+
111+
```
112+
113+
Use the value in the `code` column.
114+
115+
1. Continue with the next section.
102116

103117
## Set configuration values {#config-cli-config-set}
104118

@@ -107,6 +121,7 @@ To set system-specific configuration values on Magento 2.2.0 - 2.2.3, use:
107121
```bash
108122
bin/magento config:set [--scope="..."] [--scope-code="..."] [-l | --lock] path value
109123
```
124+
110125
To set system-specific configuration values on Magento 2.2.4 and higher (on the 2.2 branch), use:
111126

112127
```bash
@@ -136,12 +151,14 @@ If you use the `--lock`, `--lock-env`, or `--lock-config` option to set or chang
136151

137152
If you enter an incorrect configuration path, this command returns an error:
138153

139-
The "wrong/config/path" does not exist
154+
```terminal
155+
The "wrong/config/path" does not exist
156+
```
140157

141158
See one of the following sections for more information:
142159

143-
* [Set configuration values that can be edited in the Magento Admin](#config-cli-config-set-edit)
144-
* [Set configuration values that cannot be edited in the Magento Admin](#config-cli-config-file)
160+
* [Set configuration values that can be edited in the Magento Admin](#config-cli-config-set-edit)
161+
* [Set configuration values that cannot be edited in the Magento Admin](#config-cli-config-file)
145162

146163
### Set configuration values that can be edited in the Magento Admin {#config-cli-config-set-edit}
147164

@@ -201,9 +218,9 @@ bin/magento config:show [--scope[="..."]] [--scope-code[="..."]] path
201218
202219
In this case:
203220
204-
* `--scope` is the scope of configuration (`default`, `website`, `store`). The default value is `default`.
205-
* `--scope-code` is the scope code of configuration (website code or store view code).
206-
* `path` is the configuration path in format `first_part/second_part/third_part/etc` *(required)*.
221+
* `--scope` is the scope of configuration (`default`, `website`, `store`). The default value is `default`.
222+
* `--scope-code` is the scope code of configuration (website code or store view code).
223+
* `path` is the configuration path in format `first_part/second_part/third_part/etc` *(required)*.
207224
208225
{:.bs-callout .bs-callout-info}
209226
The `bin/magento config:show` command displays the values of any [encrypted values]({{ page.baseurl }}/config-guide/prod/config-reference-sens.html) as a series of asterisks: `******`.

guides/v2.2/config-guide/cli/config-cli-subcommands-cron.md

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ functional_areas:
88
---
99

1010
## Overview of cron {#config-cli-cron-overview}
11+
1112
{% include config/cron-overview.md %}
1213

1314
To run cron in a web browser, see [Secure cron.php to run in a browser]({{ page.baseurl }}/config-guide/secy/secy-cron.html)
@@ -26,10 +27,13 @@ You should remove the Magento crontab only before uninstalling the Magento appli
2627

2728
To remove the Magento crontab:
2829

29-
1. Log in as or switch to the [Magento file system owner]({{ page.baseurl }}/install-gde/prereq/file-sys-perms-over.html).
30-
2. Change to the Magento installation directory.
31-
3. Enter the following command:
32-
`bin/magento cron:remove`
30+
1. Log in as or switch to the [Magento file system owner]({{ page.baseurl }}/install-gde/prereq/file-sys-perms-over.html).
31+
1. Change to the Magento installation directory.
32+
1. Enter the following command:
33+
34+
```bash
35+
bin/magento cron:remove
36+
```
3337

3438
{:.bs-callout .bs-callout-info}
3539
This command has no effect on cron jobs outside the `#~ MAGENTO START` and `#~ MAGENTO END` comments in your crontab.
@@ -39,18 +43,22 @@ This command has no effect on cron jobs outside the `#~ MAGENTO START` and `#~ M
3943
Command options:
4044

4145
```bash
42-
bin/magento cron:run [--group="<cron group name>"]
46+
bin/magento cron:run [--group="<cron group name>"]
4347
```
4448

4549
where `--group` specifies the cron group to run (omit this option to run cron for all groups)
4650

4751
To run the indexing cron job, enter:
4852

49-
`bin/magento cron:run --group index`
53+
```bash
54+
bin/magento cron:run --group index`
55+
```
5056

5157
To run the default cron job, enter:
5258

53-
`bin/magento cron:run --group default`
59+
```bash
60+
bin/magento cron:run --group default
61+
```
5462

5563
To set up custom cron jobs and groups, see [Configure custom cron jobs and cron groups]({{ page.baseurl }}/config-guide/cron/custom-cron.html).
5664

@@ -65,23 +73,23 @@ All exceptions from cron jobs are logged by `\Magento\Cron\Observer\ProcessCronQ
6573

6674
In addition to being logged in `cron.log`:
6775

68-
- Failed jobs with `ERROR` and `MISSED` statuses are logged to the `<install_directory>/var/log/support_report.log`.
76+
- Failed jobs with `ERROR` and `MISSED` statuses are logged to the `<install_directory>/var/log/support_report.log`.
6977

70-
- Jobs with an `ERROR` status are always logged as `CRITICAL` in `<install_directory>/var/log/exception.log`.
78+
- Jobs with an `ERROR` status are always logged as `CRITICAL` in `<install_directory>/var/log/exception.log`.
7179

72-
- Jobs with a `MISSED` status are logged as `INFO` in the `<install_directory>/var/log/debug.log` directory (developer mode only).
80+
- Jobs with a `MISSED` status are logged as `INFO` in the `<install_directory>/var/log/debug.log` directory (developer mode only).
7381

7482
{%
7583
include note.html
7684
type='info'
7785
content='All cron data is also written to the `cron_schedule` table in the Magento database. The table provides a history of cron jobs, including:
7886
79-
- Job ID and code
80-
- Status
81-
- Created date
82-
- Scheduled date
83-
- Executed date
84-
- Finished date
87+
- Job ID and code
88+
- Status
89+
- Created date
90+
- Scheduled date
91+
- Executed date
92+
- Finished date
8593
8694
To see records in the table, log in to the Magento database on the command line and enter `SELECT * from cron_schedule;`.'
8795
%}

0 commit comments

Comments
 (0)