Skip to content

Commit

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

* Update all docs to use /plugins prefix in links.
  • Loading branch information
reynoldsalec authored Feb 13, 2024
1 parent b35b407 commit 5beaf10
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ services:
## Choosing a server (or not)
By default, `php` services will be served by the default version of our [apache](https://docs.lando.dev/apache/) service but you can switch this to either `nginx` or `cli`.
By default, `php` services will be served by the default version of our [apache](https://docs.lando.dev/plugins/apache/) service but you can switch this to either `nginx` or `cli`.

Like with `apache`, `nginx` will use the the default version of our [nginx](https://docs.lando.dev/nginx/) service while `cli` will just spin up a `php` container without a web server. The latter is useful if you just want to work on a CLI utility or lock down what version `composer` runs with.
Like with `apache`, `nginx` will use the the default version of our [nginx](https://docs.lando.dev/plugins/nginx/) service while `cli` will just spin up a `php` container without a web server. The latter is useful if you just want to work on a CLI utility or lock down what version `composer` runs with.

#### With Apache (default)

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

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/) and [nginx](https://docs.lando.dev/nginx/) 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/) and [nginx](https://docs.lando.dev/plugins/nginx/) if you plan to use a custom `vhosts` or `server` config.

If you set `via: cli` then, as you might suspect, `vhosts` and/or `server` is not going to do anything.

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/installing-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ mailchimp:

# Installing PHP Extensions on Lando

You may wish to add additional PHP extensions to your Lando [PHP service](https://docs.lando.dev/php). There are a few different ways you can do this:
You may wish to add additional PHP extensions to your Lando [PHP service](https://docs.lando.dev/plugins/php). There are a few different ways you can do this:

[[toc]]

Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ next: ./config.html

# PHP

[PHP](https://www.php.net/) is a popular scripting language that is especially suited for web development. It is often served by either [apache](https://docs.lando.dev/apache/) or [nginx](https://docs.lando.dev/nginx/).
[PHP](https://www.php.net/) is a popular scripting language that is especially suited for web development. It is often served by either [apache](https://docs.lando.dev/plugins/apache/) or [nginx](https://docs.lando.dev/plugins/nginx/).

You can easily add it to your Lando app by adding an entry to the [services](https://docs.lando.dev/core/v3/lando-service.html) top-level config in your [Landofile](https://docs.lando.dev/core/v3).

Expand Down Expand Up @@ -48,5 +48,5 @@ You can still run these versions with Lando but for all intents and purposes the
Because we use our own custom images for `php`, specifying a patch version is not currently supported.

If you **really** need to lock down to a patch version, you could consider using either a [custom compose service](https://docs.lando.dev/compose) or a service [overrides](https://docs.lando.dev/core/v3/lando-service.html#overrides).
If you **really** need to lock down to a patch version, you could consider using either a [custom compose service](https://docs.lando.dev/plugins/compose) or a service [overrides](https://docs.lando.dev/core/v3/lando-service.html#overrides).

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 = "/php"
to = "/plugins/php"
status = 200
[[redirects]]
from = "/php/*"
from = "/plugins/php/*"
to = "/:splat"
status = 200

0 comments on commit 5beaf10

Please sign in to comment.