代码拉取完成,页面将自动刷新
#!/usr/bin/env bash
set -e
cd "$(dirname "${BASH_SOURCE[0]}")" && devbox_dir=$PWD
source "${devbox_dir}/scripts/functions.sh"
resetNestingLevel
current_script_name=`basename "$0"`
initLogFile ${current_script_name}
warm_up_cache=0
while getopts 'w' flag; do
case "${flag}" in
w) warm_up_cache=1 ;;
*) error "Unexpected option" && exit 1;;
esac
done
debug_devbox_project="$(bash "${devbox_dir}/scripts/get_env_config_value.sh" "debug_devbox_project")"
if [[ ${debug_devbox_project} -eq 1 ]]; then
set -x
fi
bash "${devbox_dir}/scripts/host/m_clear_cache.sh" "$@" 2> >(logError)
if [[ ${warm_up_cache} -eq 1 ]]; then
incrementNestingLevel
bash "${devbox_dir}/scripts/host/warm_up_cache.sh" 2> >(logError)
decrementNestingLevel
else
info "Use 'bash ./m-clear-cache -w' to get automatic cache warm up"
fi
info "$(regular)See details in $(bold)${devbox_dir}/log/${current_script_name}.log$(regular). For debug output set $(bold)debug:devbox_project$(regular) to $(bold)1$(regular) in $(bold)etc/config.yaml$(regular)"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。