update justfile

This commit is contained in:
pluja 2024-03-04 21:18:08 +01:00
parent bc1397fc55
commit dfe2fcbdc8

View File

@ -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