Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions docker/.env.beta

This file was deleted.

48 changes: 17 additions & 31 deletions docker/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ select_deployment_mode() {
echo " 1) 🛠️ Development mode - Expose all service ports for debugging"
echo " 2) 🏗️ Infrastructure mode - Only start infrastructure services"
echo " 3) 🚀 Production mode - Only expose port 3000 for security"
echo " 4) 🧪 Beta mode - Use develop branch images (from .env.beta)"

if [ -n "$MODE_CHOICE" ]; then
mode_choice="$MODE_CHOICE"
Expand All @@ -393,11 +392,6 @@ select_deployment_mode() {
disable_dashboard
echo "✅ Selected production mode 🚀"
;;
4)
export DEPLOYMENT_MODE="beta"
export COMPOSE_FILE_SUFFIX=".yml"
echo "✅ Selected beta mode 🧪"
;;
*)
export DEPLOYMENT_MODE="development"
export COMPOSE_FILE_SUFFIX=".yml"
Expand Down Expand Up @@ -751,34 +745,26 @@ create_default_admin_user() {
}

choose_image_env() {
if [ "$DEPLOYMENT_MODE" = "beta" ]; then
echo "🌐 Beta Mode: using .env.beta for image sources."
source .env.beta
echo ""
echo "--------------------------------"
echo ""
if [ -n "$IS_MAINLAND" ]; then
is_mainland="$IS_MAINLAND"
echo "🌏 Using is_mainland from argument: $is_mainland"
else
if [ -n "$IS_MAINLAND" ]; then
is_mainland="$IS_MAINLAND"
echo "🌏 Using is_mainland from argument: $is_mainland"
else
read -p "🌏 Is your server network located in mainland China? [Y/N] (default N): " is_mainland
fi

# Sanitize potential Windows CR in input
is_mainland=$(sanitize_input "$is_mainland")
if [[ "$is_mainland" =~ ^[Yy]$ ]]; then
echo "🌐 Detected mainland China network, using .env.mainland for image sources."
source .env.mainland
else
echo "🌐 Using general image sources from .env.general."
source .env.general
fi
read -p "🌏 Is your server network located in mainland China? [Y/N] (default N): " is_mainland
fi

echo ""
echo "--------------------------------"
echo ""
# Sanitize potential Windows CR in input
is_mainland=$(sanitize_input "$is_mainland")
if [[ "$is_mainland" =~ ^[Yy]$ ]]; then
echo "🌐 Detected mainland China network, using .env.mainland for image sources."
source .env.mainland
else
echo "🌐 Using general image sources from .env.general."
source .env.general
fi

echo ""
echo "--------------------------------"
echo ""
}

main_deploy() {
Expand Down