docs(deploy): fix variable passing (#236)

This commit is contained in:
Yao Siqian
2026-03-13 01:14:37 +08:00
committed by GitHub
parent 9b771acaa8
commit 7904de87bd
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -50,12 +50,12 @@ sudo docker compose up -d
> **Install a specific version:** > **Install a specific version:**
> ```bash > ```bash
> MEMOH_VERSION=v1.0.0 curl -fsSL https://memoh.sh | sudo sh > curl -fsSL https://memoh.sh | sudo MEMOH_VERSION=v1.0.0 sh
> ``` > ```
> >
> **Use CN mirror for slow image pulls:** > **Use CN mirror for slow image pulls:**
> ```bash > ```bash
> USE_CN_MIRROR=true curl -fsSL https://memoh.sh | sudo sh > curl -fsSL https://memoh.sh | sudo USE_CN_MIRROR=true sh
> ``` > ```
> >
> On macOS or if your user is in the `docker` group, `sudo` is not required. > On macOS or if your user is in the `docker` group, `sudo` is not required.
+2 -2
View File
@@ -50,12 +50,12 @@ sudo docker compose up -d
> **安装指定版本:** > **安装指定版本:**
> ```bash > ```bash
> MEMOH_VERSION=v1.0.0 curl -fsSL https://memoh.sh | sudo sh > curl -fsSL https://memoh.sh | sudo MEMOH_VERSION=v1.0.0 sh
> ``` > ```
> >
> **使用中国大陆镜像加速:** > **使用中国大陆镜像加速:**
> ```bash > ```bash
> USE_CN_MIRROR=true curl -fsSL https://memoh.sh | sudo sh > curl -fsSL https://memoh.sh | sudo USE_CN_MIRROR=true sh
> ``` > ```
> >
> macOS 或用户已在 `docker` 用户组中时,无需 `sudo`。 > macOS 或用户已在 `docker` 用户组中时,无需 `sudo`。
+3 -3
View File
@@ -42,16 +42,16 @@ Defaults when running silently:
**Install a specific version:** **Install a specific version:**
```bash ```bash
MEMOH_VERSION=v1.0.0 curl -fsSL https://memoh.sh | sudo sh curl -fsSL https://memoh.sh | sudo MEMOH_VERSION=v1.0.0 sh
``` ```
**Use China mainland mirror** (for slow image pulls): **Use China mainland mirror** (for slow image pulls):
```bash ```bash
USE_CN_MIRROR=true curl -fsSL https://memoh.sh | sudo sh curl -fsSL https://memoh.sh | sudo USE_CN_MIRROR=true sh
``` ```
> Environment variables can be combined, e.g. `MEMOH_VERSION=v1.0.0 USE_CN_MIRROR=true curl -fsSL https://memoh.sh | sudo sh` > Environment variables can be combined, e.g. `curl -fsSL https://memoh.sh | sudo MEMOH_VERSION=v1.0.0 USE_CN_MIRROR=true sh`
## Manual Install ## Manual Install