Skip to content

Commit

Permalink
Update netlify.toml (#61)
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 committed Feb 13, 2024
1 parent 481565f commit 4f7e7ca
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Note that if the above config options are not enough, all Lando recipes can be f

## Choosing a php version

You can set `php` to any version that is available in our [php service](https://docs.lando.dev/php). However, you should consult the [WordPress requirements](https://wordpress.org/about/requirements/) to make sure that version is actually supported by WordPress itself.
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 [WordPress requirements](https://wordpress.org/about/requirements/) to make sure that version is actually supported by WordPress itself.

The [recipe config](https://docs.lando.dev/core/v3/recipes.html#config) to set the WordPress recipe to use `php` version `7.1` is shown below:

Expand All @@ -40,7 +40,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: wordpress
Expand All @@ -50,7 +50,7 @@ config:

## Choosing a web server

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 @@ -70,9 +70,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 [WordPress requirements](https://wordpress.org/about/requirements/) to make sure the `database` and `version` you select is actually supported by WordPress itself.

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

If you do this, you must use files that exist inside your application and express them relative to your project root as shown 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
4 changes: 2 additions & 2 deletions docs/tooling.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ You can also run `lando` from inside your app directory for a complete list of c

## 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: wordpress
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
4 changes: 2 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
# We need this so preview environments and the base site look ok on their own
[[redirects]]
from = "/"
to = "/wordpress"
to = "/plugins/wordpress"
status = 200
[[redirects]]
from = "/wordpress/*"
from = "/plugins/wordpress/*"
to = "/:splat"
status = 200

0 comments on commit 4f7e7ca

Please sign in to comment.