Skip to content

Commit

Permalink
just get this thing healthy again part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Oct 24, 2024
1 parent 9e40f0c commit 572f089
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 68 deletions.
40 changes: 0 additions & 40 deletions docs/.vuepress/config.js

This file was deleted.

2 changes: 1 addition & 1 deletion examples/2.4/.lando.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lando-apache
name: lando-apache-defaults
proxy:
defaults:
- landoapache.lndo.site
Expand Down
22 changes: 9 additions & 13 deletions examples/2.4/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
Apache Example
==============
# Apache 2.4 Example

This example exists primarily to test the following documentation:

* [Apache Service](https://docs.devwithlando.io/tutorials/apache.html)
* [Apache Service](https://docs.lando.dev/plugins/apache)

Start up tests
--------------
## Start up tests

Run the following commands to get up and running with this example.

Expand All @@ -16,27 +14,25 @@ lando poweroff
lando start
```

Verification commands
---------------------
## Verification commands

Run the following commands to validate things are rolling as they should.

```bash
# Should return 2.4.41 for the default version
lando ssh -s defaults -c "apachectl -V | grep 2.4.41"
lando exec defaults -- apachectl -V | grep 2.4.41

# Should return 2.4.39 for the patch service
lando ssh -s patch -c "apachectl -V | grep 2.4.39"
lando exec patch -- apachectl -V | grep 2.4.39

# Should serve from the app root by default
lando ssh -s defaults -c "curl http://localhost | grep ROOTDIR"
lando exec defaults -- curl http://localhost | grep ROOTDIR

# Should only serve over http by default
lando ssh -s defaults -c "curl https://localhost" || echo $? | grep 1
lando exec defaults -- curl https://localhost || echo $? | grep 7
```

Destroy tests
-------------
## Destroy tests

Run the following commands to trash this app like nothing ever happened.

Expand Down
24 changes: 10 additions & 14 deletions examples/custom/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
Apache Example
==============
# Apache Custom Example

This example exists primarily to test the following documentation:

* [Apache Service](https://docs.devwithlando.io/tutorials/apache.html)
* [Apache Service](https://docs.lando.dev/plugins/apache)

Start up tests
--------------
## Start up tests

Run the following commands to get up and running with this example.

Expand All @@ -16,28 +14,26 @@ lando poweroff
lando start
```

Verification commands
---------------------
## Verification commands

Run the following commands to validate things are rolling as they should.

```bash
# Should serve from webroot if specified
lando ssh -s custom -c "curl http://localhost | grep WEBDIR"
lando exec custom -- curl http://localhost | grep WEBDIR

# Should serve from https when specified
lando ssh -s custom -c "curl https://localhost | grep WEBDIR"
lando exec custom -- curl https://localhost | grep WEBDIR

# Should mount custom config to the correct locationz
lando ssh -s custom -c "cat /opt/bitnami/apache/conf/httpd.conf | grep LANDOHTTPD"
lando ssh -s custom -c "cat /opt/bitnami/apache/conf/vhosts/lando.conf | grep LANDOCUSTOM"
lando exec custom -- cat /opt/bitnami/apache/conf/httpd.conf | grep LANDOHTTPD
lando exec custom -- cat /opt/bitnami/apache/conf/vhosts/lando.conf | grep LANDOCUSTOM

# Should use htaccess-lando if it exists
lando ssh -s override -c "curl -I http://landoapachecustom.lndo.site/folder1" | grep Location | grep http://landoapachecustom.lndo.site/folder2/
lando exec override -- curl -I http://landoapachecustom.lndo.site/folder1 | grep Location | grep http://landoapachecustom.lndo.site/folder2/
```

Destroy tests
-------------
## Destroy tests

Run the following commands to trash this app like nothing ever happened.

Expand Down

0 comments on commit 572f089

Please sign in to comment.