Skip to content

Commit 5893105

Browse files
committed
Added init defaults.
1 parent 8a84fb4 commit 5893105

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## {{ UNRELEASED_VERSION }} - [{{ UNRELEASED_DATE }}]({{ UNRELEASED_LINK }})
22

3+
* Added `defaults` to the `init` function.
4+
35
## v1.8.1 - [December 9, 2024](https://github.com/lando/lamp/releases/tag/v1.8.1)
46

57
* Removed unneeded `@lando/nginx` dependency

examples/lamp-init/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ lando php -v |grep "5.6"
7575
lando exec database -- mysql --version | grep "10.3"
7676
lando poweroff
7777
mv orig.lando.yml .lando.yml
78+
79+
# Should have defaults in .lando.yml
80+
cd lamp
81+
cat .lando.yml | grep 'php: "7.4"'
82+
cat .lando.yml | grep "via: apache"
83+
cat .lando.yml | grep "xdebug: false"
84+
cat .lando.yml | grep "webroot: ."
85+
cat .lando.yml | grep "database: mysql"
7886
```
7987

8088
## Destroy tests

inits/lamp.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@
55
*/
66
module.exports = {
77
name: 'lamp',
8+
defaults: {
9+
via: 'apache',
10+
php: '7.4',
11+
database: 'mysql',
12+
webroot: '.',
13+
xdebug: false,
14+
},
815
};

0 commit comments

Comments
 (0)