thread-master/scripts/prod-down.sh

11 lines
323 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
set -euo pipefail
# shellcheck source=scripts/prod-common.sh
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/prod-common.sh"
prod_common_init
cd "$DEPLOY_DIR"
prod_compose down --remove-orphans
echo "[prod] stoppedMongo/Redis 資料仍在 named volume下次 prod / prod-deps 會沿用)"