Skip to content

Commit

Permalink
Update netlify.toml (#92)
Browse files Browse the repository at this point in the history
* Update netlify.toml to use /plugins prefix.

* Update doc plugin paths.

* Update all docs to use /plugins prefix in links.
  • Loading branch information
reynoldsalec authored Feb 13, 2024
1 parent b9d9ccc commit 6401081
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ config:

## Choosing a PHP version

You can set `php` to any version that is available in our [php service](https://docs.lando.dev/php/).
You can set `php` to any version that is available in our [php service](https://docs.lando.dev/plugins/php/).

However, you should consult the [Drupal requirements](https://www.drupal.org/docs/getting-started/system-requirements) to make sure that the version of `php` you choose is actually supported by the version of `drupal` you are running.

Expand All @@ -54,7 +54,7 @@ config:

## Choosing a composer version

You can set `composer_version` to any version that is available in our [php service](https://docs.lando.dev/php/config.html#installing-composer).
You can set `composer_version` to any version that is available in our [php service](https://docs.lando.dev/plugins/php/config.html#installing-composer).

```yaml
recipe: drupal9
Expand All @@ -64,7 +64,7 @@ config:

## Choosing a webserver

By default this recipe will be served by the default version of our [apache](https://docs.lando.dev/apache) service but you can also switch this to use [`nginx`](https://docs.lando.dev/nginx). We *highly recommend* you check out both the [apache](https://docs.lando.dev/apache) and [nginx](https://docs.lando.dev/nginx) services before you change the default `via`.
By default this recipe will be served by the default version of our [apache](https://docs.lando.dev/plugins/apache) service but you can also switch this to use [`nginx`](https://docs.lando.dev/plugins/nginx). We *highly recommend* you check out both the [apache](https://docs.lando.dev/plugins/apache) and [nginx](https://docs.lando.dev/plugins/nginx) services before you change the default `via`.

#### With Apache (default)

Expand All @@ -84,9 +84,9 @@ config:

## Choosing a database backend

By default this recipe will use the default version of our [mysql](https://docs.lando.dev/mysql) service as the database backend but you can also switch this to use [`mariadb`](https://docs.lando.dev/mariadb) or [`postgres`](https://docs.lando.dev/postgres) instead. Note that you can also specify a version *as long as it is a version available for use with lando* for either `mysql`, `mariadb` or `postgres`.
By default this recipe will use the default version of our [mysql](https://docs.lando.dev/plugins/mysql) service as the database backend but you can also switch this to use [`mariadb`](https://docs.lando.dev/plugins/mariadb) or [`postgres`](https://docs.lando.dev/plugins/postgres) instead. Note that you can also specify a version *as long as it is a version available for use with lando* for either `mysql`, `mariadb` or `postgres`.

If you are unsure about how to configure the `database` we *highly recommend* you check out the [`mysql`](https://docs.lando.dev/mysql), [`mariadb`](https://docs.lando.dev/mariadb) and [`postgres`](https://docs.lando.dev/postgres) services before you change the default.
If you are unsure about how to configure the `database` we *highly recommend* you check out the [`mysql`](https://docs.lando.dev/plugins/mysql), [`mariadb`](https://docs.lando.dev/plugins/mariadb) and [`postgres`](https://docs.lando.dev/plugins/postgres) services before you change the default.

Also note that like the configuration of the `php` version you should consult the [Drupal requirements](https://www.drupal.org/docs/getting-started/system-requirements) to make sure the `database` and `version` you select is actually supported by the version of Drupal you are using.

Expand Down Expand Up @@ -148,7 +148,7 @@ You may need to override our [default Drupal config](https://github.com/lando/dr

If you do this you must use files that exist inside your application and express them relative to your project root as below.

Note that the default files may change based on how you set both `ssl` and `via`. Also note that the `vhosts` and `server` config will be either for `apache` or `nginx` depending on how you set `via`. We *highly recommend* you check out both the [apache](https://docs.lando.dev/apache/config.html) and [nginx](https://docs.lando.dev/nginx/config.html) if you plan to use a custom `vhosts` or `server` config.
Note that the default files may change based on how you set both `ssl` and `via`. Also note that the `vhosts` and `server` config will be either for `apache` or `nginx` depending on how you set `via`. We *highly recommend* you check out both the [apache](https://docs.lando.dev/plugins/apache/config.html) and [nginx](https://docs.lando.dev/plugins/nginx/config.html) if you plan to use a custom `vhosts` or `server` config.

**A hypothetical project**

Expand Down
2 changes: 1 addition & 1 deletion docs/legacy/drupal-7.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ config:

While Lando will globally install Drush for you it is increasingly common and in some cases a straight-up best practice to [install a site-local Drush](https://www.drush.org/latest/install/) by requiring it in your projects `composer.json` file.

Because of how Lando's [php service](https://docs.lando.dev/php) sets up its [`PATH`](https://docs.lando.dev/php/caveats.html) this means that if you have indeed installed Drush on your own via `composer` Lando will use yours over its own.
Because of how Lando's [php service](https://docs.lando.dev/plugins/php) sets up its [`PATH`](https://docs.lando.dev/plugins/php/caveats.html) this means that if you have indeed installed Drush on your own via `composer` Lando will use yours over its own.

Said more explicitly: **if you've required `drush` via `composer` in your application then this recipe will use your `drush` and not the one you've specified in this recipes config.**

Expand Down
4 changes: 2 additions & 2 deletions docs/tooling.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ tooling:

## Using xdebug

This is just a passthrough option to the [xdebug setting](https://docs.lando.dev/php/config.html#using-xdebug) that exists on all our [php services](https://docs.lando.dev/php). The `tl;dr` is `xdebug: true` enables and configures the php xdebug extension and `xdebug: false` disables it.
This is just a passthrough option to the [xdebug setting](https://docs.lando.dev/plugins/php/config.html#using-xdebug) that exists on all our [php services](https://docs.lando.dev/plugins/php). The `tl;dr` is `xdebug: true` enables and configures the php xdebug extension and `xdebug: false` disables it.

```yaml
recipe: drupal9
config:
xdebug: true|false
```

However, for more information we recommend you consult the [php service documentation](https://docs.lando.dev/php).
However, for more information we recommend you consult the [php service documentation](https://docs.lando.dev/plugins/php).


## Importing Your Database
Expand Down
8 changes: 4 additions & 4 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
# We need this so preview environments and the base site look ok on their own
[[redirects]]
from = "/"
to = "/drupal"
to = "/plugins/drupal"
status = 200
[[redirects]]
from = "/drupal/*"
from = "/plugins/drupal/*"
to = "/:splat"
status = 200
[[redirects]]
from = "/drupal/legacy-versions.html"
to = "/drupal/legacy/drupal-8.html"
from = "/plugins/drupal/legacy-versions.html"
to = "/plugins/drupal/legacy/plugins/drupal-8.html"
status = 200

0 comments on commit 6401081

Please sign in to comment.