Skip to content

Commit 0ec6591

Browse files
authored
fix(cli): 修复./cli compose run {container} {args}中arg没有传递给容器的问题 (#1465)
修复某次升级导致`./cli compose run {container} {args}`中arg没有传递给容器的问题
1 parent 3b129d5 commit 0ec6591

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.changeset/silent-tomatoes-attend.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@scow/cli": patch
3+
"@scow/docs": patch
4+
---
5+
6+
修复 cli compose run 命令时命令行参数没有传给容器的问题

docker/entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ cd "apps/$SCOW_LAUNCH_APP"
55
cp ../../version.json ./
66

77
# exec to listen for stop signal
8-
exec npm run serve
8+
# also pass all command parameters
9+
exec npm run serve "$@"

docs/docs/info/mis/business/billing.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ tenant_1: # 对租户tenant_1的账户用户发起的任务,在默认规则的
159159
1. 每个计费项应该只出现一次。即使多个QOS费用相同,也应该定义两个计费项
160160
2. 数据库中不存在具有相同计费项名的行
161161

162-
在数据库正在运行、`docker-compose.yml`配置编写完成的条件下,运行以下命令快速在数据库中创建费用项信息:
162+
在数据库正在运行时、运行以下命令快速在数据库中创建费用项信息:
163163

164164
```bash
165-
docker compose run mis-server createPriceItems
165+
./cli compose run mis-server createPriceItems
166166
```
167167

0 commit comments

Comments
 (0)