From b47b5d3b4b8f471ef84ba37dda2c57a2fb56b01e Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 26 Sep 2024 20:06:37 -0300 Subject: [PATCH] docker-reset: add detach arg for demo deployment --- docker-reset.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-reset.sh b/docker-reset.sh index 9264b93..77d63b1 100755 --- a/docker-reset.sh +++ b/docker-reset.sh @@ -9,11 +9,14 @@ set -u set -x main() { + if [ "${DETACH:-}" ]; then + detach_arg='-d' + fi # remove old database sudo rm -vf db/* docker compose down docker compose build - docker compose up + docker compose up ${detach_arg:-} } main "${@}"