You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/configuration/multipledomains.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
3
3
If you need multiple domains configured for your project, RollDev will now automatically route all sub-domains of the configured `TRAEFIK_DOMAIN` (as given when running `env-init`) to the Varnish/Nginx containers provided there is not a more specific rule such as for example `rabbitmq.exampleproject.com` which routes to the `rabbitmq` service for the project.
4
4
5
+
:::{tip}
6
+
**Magento 2 Users:** For an easier multi-store setup, use the `roll multistore` command which automates the configuration below. See the [Magento 2 Multi-Store Configuration](../environments/magento2.md#multi-store-configuration) section for details.
7
+
:::
8
+
5
9
Multiple top-level domains may also be setup by following the instructions below:
Copy file name to clipboardExpand all lines: docs/environments/magento2.md
+111Lines changed: 111 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -291,3 +291,114 @@ The below example demonstrates the from-scratch setup of the Magento 2 applicati
291
291
:::{note}
292
292
To completely destroy the ``exampleproject`` environment we just created, run ``roll env down -v`` to tear down the project's Docker containers, volumes, etc.
293
293
:::
294
+
295
+
---
296
+
297
+
## Multi-Store Configuration
298
+
299
+
RollDev provides the `multistore` command to easily manage Magento multi-store setups with multiple domains.
300
+
301
+
### Quick Setup
302
+
303
+
1. Create a configuration file at `.roll/stores.json`:
304
+
305
+
```json
306
+
{
307
+
"stores": {
308
+
"store-nl.test": "store_nl",
309
+
"store-be.test": "store_be",
310
+
"store-de.test": "store_de"
311
+
},
312
+
"run_type": "store"
313
+
}
314
+
```
315
+
316
+
2. Initialize the multi-store configuration:
317
+
318
+
```bash
319
+
roll multistore init
320
+
```
321
+
322
+
3. Restart the environment:
323
+
324
+
```bash
325
+
roll env up
326
+
```
327
+
328
+
### Configuration Options
329
+
330
+
The `.roll/stores.json` file supports the following options:
0 commit comments