Skip to content

Commit 841af60

Browse files
committed
doc: 更新文档
1 parent b27c7c8 commit 841af60

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

README-CN.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,20 @@ ssm new
3939
- `--port``-p` :指定端口映射,默认为 `3000`,且必须可用,如果您传递了 `-i` 标标志来创建一个前端容器,则默认端口为 `80`。如果你想使用域名访问服务,则需要使用反向代理工具(如 Nginx 或 Caddy)手动代理该端口。
4040

4141

42+
### update
43+
44+
更新一个 Sub-Store Docker 容器,确保镜像已经存在且正在运行。
45+
46+
```bash
47+
ssm update
48+
```
49+
50+
该命令支持以下 `flag`
51+
52+
- `--name``-n` :一个正在运行的容器名称,默认名称为 `ssm-backend`
53+
54+
- `--version``-v` :一个 [Sub-Store Release](https://github.com/sub-store-org/Sub-Store/releases) 的版本字符串,默认获取最新版本。如果您更新目标为前端容器,则 `-v` 标志将被忽略,它总是使用最新版本的前端。
55+
4256

4357
### start
4458

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,21 @@ this command support the following flags:
4040
- `--port` or `-p` : To successfully create a new Docker container, you need to specify the port mapping. The default port is `3000`, and it must be available. If you pass `-i` to create a front-end container, the default port will be `80`. If you want to access the container using a domain name, you will need to manually proxy this port with a reverse proxy tool such as Nginx or Caddy.
4141

4242

43+
### update
44+
45+
To update a sub-store docker container, ensure that the image already exists and is running.
46+
47+
```bash
48+
ssm update
49+
```
50+
51+
this command support the following flags:
52+
53+
- `--name` or `-n` : A name of running container, default name is `ssm-backend`.
54+
55+
- `--version` or `-v` : A [Sub-Store release](https://github.com/sub-store-org/Sub-Store/releases) version string, default is latest. If you update a front-end container, `-v` will be ignored, it always uses the latest version of the front-end.
56+
57+
4358
### start
4459

4560
Start a non-running sub-store Docker container by name, default name set as `ssm-backend`.

0 commit comments

Comments
 (0)