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

Commit 2fefae5

Browse files
authored
Merge pull request #2463 from magento-commerce/db_remote_storagee
Warn about remote storage
2 parents e0c4da4 + 49ba3ca commit 2fefae5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/guides/v2.4/config-guide/remote-storage/config-remote-storage-aws-s3.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ To enable remote storage with the AWS S3 adapter:
1919

2020
1. Set up [AWS IAM][] roles. Alternatively, generate access and secret keys.
2121

22+
1. Database storage must be disabled if using remote storage:
23+
24+
```bash
25+
bin/magento config:set system/media_storage_configuration/media_database 0
26+
```
27+
2228
1. Configure Magento to use the private bucket. See [Remote storage options][options] for a full list of parameters.
2329

2430
```bash

src/guides/v2.4/config-guide/remote-storage/config-remote-storage.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ The following examples enable the remote storage with an AWS S3 storage adapter
5959

6060
## Limitations
6161

62+
You cannot have both remote storage and database storage enabled at the same time. Disable database storage if you are using remote storage.
63+
64+
```bash
65+
bin/magento config:set system/media_storage_configuration/media_database 0
66+
```
67+
6268
Enabling remote storage might affect your established development experience. For example, certain PHP file functions might not work as expected. The usage of Magento Framework for file operations must be enforced.
6369

6470
The list of prohibited PHP native functions is available in [Magento Coding Standard](https://github.com/magento/magento-coding-standard/blob/develop/Magento2/Sniffs/Functions/DiscouragedFunctionSniff.php) repository.

0 commit comments

Comments
 (0)