Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
ff2353f0d1
commit
232ab93af7
@ -38,7 +38,9 @@ Cuddle is a purely composition based tool, it means that it allows splitting
|
||||
cross cutting needs into many small chunks which can then be included in your
|
||||
service.
|
||||
|
||||
The way the services are usually created is that usually all the field are templated, or setup with default configurations just to give a hint that those features are available.
|
||||
The way the services are usually created is that usually all the field are
|
||||
templated, or setup with default configurations just to give a hint that those
|
||||
features are available.
|
||||
|
||||
```nickel
|
||||
let { Vars, .. } = import "github/kjuulh/cuddle" in
|
||||
@ -63,7 +65,7 @@ let { GoPlan, .. } = import "github/kjuulh/cuddle-go-service-plan" in
|
||||
deployment = {
|
||||
dev = {
|
||||
cron = {
|
||||
schedule = "* 0 * * *"
|
||||
schedule = "* 0 * * *",
|
||||
http = "/refresh-cache"
|
||||
}
|
||||
env = {
|
||||
@ -80,7 +82,8 @@ let { GoPlan, .. } = import "github/kjuulh/cuddle-go-service-plan" in
|
||||
} & Vars & GoPlan
|
||||
```
|
||||
|
||||
A component has the same setup, but includes a different key to define what it requires
|
||||
A component has the same setup, but includes a different key to define what it
|
||||
requires
|
||||
|
||||
```nickel
|
||||
let { Vars, Component .. } = import "github/kjuulh/cuddle" in
|
||||
|
Loading…
Reference in New Issue
Block a user