Skip to content

Backend Installation

Distributed Deployment

You can deploy the backend on a separate server to achieve frontend-backend separation.

Multiple backend instances can also be deployed across different servers to handle high concurrency.

Deploy AppleAutoPro Backend

Method 1: Interactive Installation

Run the following command, and the script will guide you to enter the required information:

bash
bash <(curl -Ls https://raw.githubusercontent.com/SideCloudGroup/AppleAutoPro-Backend/refs/heads/v4/install_en.sh)

Method 2: One-Click Installation

Supports one-click installation by passing parameters, no interactive input required:

bash
bash <(curl -Ls https://raw.githubusercontent.com/SideCloudGroup/AppleAutoPro-Backend/refs/heads/v4/install_en.sh) \
  --api-url https://example.com \
  --api-key your-api-key \
  --nodename node1 \
  --replicas 5

Parameter Description

ParameterShort OptionDescriptionRequired
--api-url-uAPI URL✅ Required
--api-key-kAPI Key✅ Required
--nodename-nNode Name (ASCII characters only: letters, numbers, underscore, dot, hyphen)✅ Required
--replicas-rNumber of replicas✅ Required
--install-dir-dInstallation directory (default: /opt/AppleAutoPro-Backend)❌ Optional
--help-hShow help message-

Usage Examples

One-click installation with all parameters:

bash
bash <(curl -Ls https://raw.githubusercontent.com/SideCloudGroup/AppleAutoPro-Backend/refs/heads/v4/install_en.sh) \
  -u https://api.example.com \
  -k abc123def456 \
  -n my-node-01 \
  -r 10 \
  -d /custom/path

Using default installation directory:

bash
bash <(curl -Ls https://raw.githubusercontent.com/SideCloudGroup/AppleAutoPro-Backend/refs/heads/v4/install_en.sh) \
  --api-url https://api.example.com \
  --api-key abc123def456 \
  --nodename my-node-01 \
  --replicas 10

🚀 Start Backend Service

Navigate to the installation directory and run the following command to start the backend service:

bash
docker compose up -d

📋 View Logs

To check the backend service status, run:

bash
docker compose logs