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 5Parameter Description
| Parameter | Short Option | Description | Required |
|---|---|---|---|
--api-url | -u | API URL | ✅ Required |
--api-key | -k | API Key | ✅ Required |
--nodename | -n | Node Name (ASCII characters only: letters, numbers, underscore, dot, hyphen) | ✅ Required |
--replicas | -r | Number of replicas | ✅ Required |
--install-dir | -d | Installation directory (default: /opt/AppleAutoPro-Backend) | ❌ Optional |
--help | -h | Show 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/pathUsing 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