mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-02-10 20:38:28 -05:00
update justfile
This commit is contained in:
parent
bc1397fc55
commit
dfe2fcbdc8
8
Justfile
8
Justfile
@ -5,6 +5,10 @@ dev +command:
|
||||
|
||||
deploy build="":
|
||||
git pull
|
||||
docker compose up {{ if build != "" { "--build" } else { "" } }} --pull=always -d
|
||||
{{if build == ""}}docker compose restart website{{end}}
|
||||
# Set variable for build option
|
||||
{{ set build_option = if build != "" { "--build" } else { "" } }}
|
||||
docker compose up {{ build_option }} --pull=always -d
|
||||
# Set variable for restart command
|
||||
{{ set restart_cmd = if build == "" { "docker compose restart website" } else { "" } }}
|
||||
{{ restart_cmd }}
|
||||
docker system prune -f
|
Loading…
x
Reference in New Issue
Block a user