diff --git a/lib/common.sh b/lib/common.sh index 35e7b00..eafdcd7 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -110,9 +110,9 @@ check_service_file() { get_proxy_conf() { if [ "${APP_ENV}" = "development" ]; then - echo "/www/sites/dev.xmclassmate.top/proxy/root.conf" + echo "/etc/nginx/sites-enabled/dev.xmclassmate.top" else - echo "/www/sites/xmclassmate.top/proxy/root.conf" + echo "/etc/nginx/sites-enabled/xmclassmate.top" fi } diff --git a/scripts/switch-env.sh b/scripts/switch-env.sh index ca48295..f752dff 100755 --- a/scripts/switch-env.sh +++ b/scripts/switch-env.sh @@ -12,7 +12,7 @@ PROJECT_ROOT="$(dirname "$SCRIPT_DIR")" ENV_FILE="$PROJECT_ROOT/.env" # ---------- 配置 ---------- -ROOT_CONF="/www/sites/xmclassmate.top/proxy/root.conf" +ROOT_CONF="/etc/nginx/sites-enabled/xmclassmate.top" NGINX_SSL_CONF="/www/sites/xmclassmate.top/ssl/fullchain.pem" SSH_HOST="deploy@47.109.203.92"