Skip to content

Commit

Permalink
Update gettings-started docs format.
Browse files Browse the repository at this point in the history
  • Loading branch information
reynoldsalec committed Feb 21, 2024
1 parent 50afa6a commit 9da8e65
Showing 1 changed file with 20 additions and 27 deletions.
47 changes: 20 additions & 27 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,19 @@ Before you get started with this recipe we assume that you have:

Try out the relevant commands below to spin up a new Landoified vanilla Drupal site.

:::: code-group DRUPAL
::: code-group-item DRUPAL 9

```bash:no-line-numbers
# Initialize a drupal9 recipe
mkdir my-first-drupal9-app \
&& cd my-first-drupal9-app \
::: code-group
```bash:no-line-numbers [DRUPAL 10]
# Initialize a drupal10 recipe
mkdir my-first-drupal10-app \
&& cd my-first-drupal10-app \
&& lando init \
--source cwd \
--recipe drupal9 \
--recipe drupal10 \
--webroot web \
--name my-first-drupal9-app
--name my-first-drupal10-app
# Create latest drupal9 project via composer
lando composer create-project drupal/recommended-project:9.x tmp && cp -r tmp/. . && rm -rf tmp
# Create latest drupal10 project via composer
lando composer create-project drupal/recommended-project:10.0.x-dev@dev tmp && cp -r tmp/. . && rm -rf tmp
# Composer can timeout on install for some machines, if that happens, run the following command and then re-run the previous lando composer command:
# lando composer config --global process-timeout 2000
Expand All @@ -42,27 +40,24 @@ lando start
lando composer require drush/drush
# Install drupal
lando drush site:install --db-url=mysql://drupal9:drupal9@database/drupal9 -y
lando drush site:install --db-url=mysql://drupal10:drupal10@database/drupal10 -y
# List information about this app
lando info
```

:::
<CodeGroupItem title="DRUPAL 10" active>

```bash:no-line-numbers
# Initialize a drupal10 recipe
mkdir my-first-drupal10-app \
&& cd my-first-drupal10-app \
```bash:no-line-numbers [DRUPAL 9]
# Initialize a drupal9 recipe
mkdir my-first-drupal9-app \
&& cd my-first-drupal9-app \
&& lando init \
--source cwd \
--recipe drupal10 \
--recipe drupal9 \
--webroot web \
--name my-first-drupal10-app
--name my-first-drupal9-app
# Create latest drupal10 project via composer
lando composer create-project drupal/recommended-project:10.0.x-dev@dev tmp && cp -r tmp/. . && rm -rf tmp
# Create latest drupal9 project via composer
lando composer create-project drupal/recommended-project:9.x tmp && cp -r tmp/. . && rm -rf tmp
# Composer can timeout on install for some machines, if that happens, run the following command and then re-run the previous lando composer command:
# lando composer config --global process-timeout 2000
Expand All @@ -74,14 +69,12 @@ lando start
lando composer require drush/drush
# Install drupal
lando drush site:install --db-url=mysql://drupal10:drupal10@database/drupal10 -y
lando drush site:install --db-url=mysql://drupal9:drupal9@database/drupal9 -y
# List information about this app
lando info
```

</CodeGroupItem>
::::
:::

Or Landoify an existing Drupal site:

Expand Down

0 comments on commit 9da8e65

Please sign in to comment.