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
{{ message }}
This repository was archived by the owner on Aug 4, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: emulsify-drupal/emulsify-drupal/advanced-usage/lando-environments.md
+42-37
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,10 @@
2
2
description: Use Lando to make your development environment portable
3
3
---
4
4
5
-
# Lando
5
+
# Lando Environments
6
6
7
7
### Why use Lando?
8
+
8
9
1. Standardizing local environments is simple and effective.
9
10
2. Your development environment is portable, so you only need Docker and Lando to develop.
10
11
3. Complicated infrastructure can be stood up quickly.
@@ -14,40 +15,42 @@ description: Use Lando to make your development environment portable
14
15
15
16
### Dependencies
16
17
17
-
-[Docker](https://docs.docker.com/get-docker/)
18
-
-[Lando](https://lando.dev/download/)
18
+
*[Docker](https://docs.docker.com/get-docker/)
19
+
*[Lando](https://lando.dev/download/)
19
20
20
21
### Basic Lando stack
21
22
22
-
1. The `drupal9` recipe can handle most the work for us
23
-
```yaml
24
-
recipe: drupal9
25
-
```
26
-
2. Both NodeJS and NPM needs to be available at a project level. Using npm the emulsify cli command can also be installed. This and npm can both be made available via Lando tooling.
1. The `drupal9` recipe can handle most the work for us
24
+
25
+
```yaml
26
+
recipe: drupal9
27
+
```
28
+
3. Both NodeJS and NPM needs to be available at a project level. Using npm the emulsify cli command can also be installed. This and npm can both be made available via Lando tooling.
3. Emulsify needs port `6006` to be available for StorybookJS and port `32778` to be available for [Hot Reload](./hot-reload-drupal.md).
48
51
49
-
By adding proxy address for browsersync.example.lndo.site and storybook.example.lndo.site that point to the ports needed, those applications can be accessible by navigating to the addresses (without the ports, like this: `http://storybook.example.lndo.site`) from outside the container services.
50
-
52
+
By adding proxy address for browsersync.example.lndo.site and storybook.example.lndo.site that point to the ports needed, those applications can be accessible by navigating to the addresses (without the ports, like this: `http://storybook.example.lndo.site`) from outside the container services.
53
+
51
54
Since we are using proxies instead of forwarding ports directly, multiple projects can make use of these ports simultaneously.
52
55
```yaml
53
56
proxy:
@@ -104,13 +107,15 @@ tooling:
104
107
```
105
108
106
109
### Setup
107
-
1. Run `composer create-project drupal/recommended-project my-project`
108
-
See [Starting a Site Using Drupal Composer Project Templates](https://www.drupal.org/docs/develop/using-composer/starting-a-site-using-drupal-composer-project-templates) for more information on setting up a Drupal project with Composer.
110
+
111
+
1. Run `composer create-project drupal/recommended-project my-project` See [Starting a Site Using Drupal Composer Project Templates](https://www.drupal.org/docs/develop/using-composer/starting-a-site-using-drupal-composer-project-templates) for more information on setting up a Drupal project with Composer.
109
112
2. Add the above lando.yml file to the project
110
113
3. Run `lando start`
111
114
4. After it builds you can then run these commands:
112
-
- `lando node`
113
-
- `lando npm`
114
-
- `lando emulsify`
115
-
- `lando drush`
116
-
5. Follow the [Inside a Composer-Based Drupal Instance](https://www.drupal.org/docs/develop/using-composer/starting-a-site-using-drupal-composer-project-templates) steps to complete setting up Emulsify Drupal.
115
+
116
+
* `lando node`
117
+
* `lando npm`
118
+
* `lando emulsify`
119
+
* `lando drush`
120
+
121
+
1. Follow the [Inside a Composer-Based Drupal Instance](emulsify-drupal/emulsify-drupal#inside-a-composer-based-drupal-instance) steps to complete setting up Emulsify Drupal.
0 commit comments