@@ -369,7 +369,6 @@ select_deployment_mode() {
369369 echo " 1) π οΈ Development mode - Expose all service ports for debugging"
370370 echo " 2) ποΈ Infrastructure mode - Only start infrastructure services"
371371 echo " 3) π Production mode - Only expose port 3000 for security"
372- echo " 4) π§ͺ Beta mode - Use develop branch images (from .env.beta)"
373372
374373 if [ -n " $MODE_CHOICE " ]; then
375374 mode_choice=" $MODE_CHOICE "
@@ -393,11 +392,6 @@ select_deployment_mode() {
393392 disable_dashboard
394393 echo " β
Selected production mode π"
395394 ;;
396- 4)
397- export DEPLOYMENT_MODE=" beta"
398- export COMPOSE_FILE_SUFFIX=" .yml"
399- echo " β
Selected beta mode π§ͺ"
400- ;;
401395 * )
402396 export DEPLOYMENT_MODE=" development"
403397 export COMPOSE_FILE_SUFFIX=" .yml"
@@ -751,34 +745,26 @@ create_default_admin_user() {
751745}
752746
753747choose_image_env () {
754- if [ " $DEPLOYMENT_MODE " = " beta" ]; then
755- echo " π Beta Mode: using .env.beta for image sources."
756- source .env.beta
757- echo " "
758- echo " --------------------------------"
759- echo " "
748+ if [ -n " $IS_MAINLAND " ]; then
749+ is_mainland=" $IS_MAINLAND "
750+ echo " π Using is_mainland from argument: $is_mainland "
760751 else
761- if [ -n " $IS_MAINLAND " ]; then
762- is_mainland=" $IS_MAINLAND "
763- echo " π Using is_mainland from argument: $is_mainland "
764- else
765- read -p " π Is your server network located in mainland China? [Y/N] (default N): " is_mainland
766- fi
767-
768- # Sanitize potential Windows CR in input
769- is_mainland=$( sanitize_input " $is_mainland " )
770- if [[ " $is_mainland " =~ ^[Yy]$ ]]; then
771- echo " π Detected mainland China network, using .env.mainland for image sources."
772- source .env.mainland
773- else
774- echo " π Using general image sources from .env.general."
775- source .env.general
776- fi
752+ read -p " π Is your server network located in mainland China? [Y/N] (default N): " is_mainland
753+ fi
777754
778- echo " "
779- echo " --------------------------------"
780- echo " "
755+ # Sanitize potential Windows CR in input
756+ is_mainland=$( sanitize_input " $is_mainland " )
757+ if [[ " $is_mainland " =~ ^[Yy]$ ]]; then
758+ echo " π Detected mainland China network, using .env.mainland for image sources."
759+ source .env.mainland
760+ else
761+ echo " π Using general image sources from .env.general."
762+ source .env.general
781763 fi
764+
765+ echo " "
766+ echo " --------------------------------"
767+ echo " "
782768}
783769
784770main_deploy () {
0 commit comments