Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:readme correction #21

Open
wants to merge 1 commit into
base: dipper
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion publish.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Edition: 3.0.0
Type: Project
Name: start-unzip-oss-cap
Version: 0.0.8
Version: 0.0.9
Provider:
- 阿里云
Description: 本案例展示了如何将ZIP文件进行解压,快速创建并部署到云原生应用开发平台 CAP。匹配解压规则的ZIP文件在上传到OSS,会自动触发解压,解压完成后存储至OSS指定目录中。
Expand Down
25 changes: 16 additions & 9 deletions readme.md
25 changes: 16 additions & 9 deletions src/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</description>


## 前期准备
## 资源准备

使用该项目,您需要有开通以下服务并拥有对应权限:

Expand Down Expand Up @@ -42,7 +42,7 @@

<appcenter>

- :fire: 通过 [云原生应用开发平台 CAP](https://devs.console.aliyun.com/applications/create?template=start-unzip-oss-cap) ,[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://devs.console.aliyun.com/applications/create?template=start-unzip-oss-cap) 该应用。
- :fire: 通过 [云原生应用开发平台 CAP](https://cap.console.aliyun.com/template-detail?template=start-unzip-oss-cap) ,[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://cap.console.aliyun.com/template-detail?template=start-unzip-oss-cap) 该应用。

</appcenter>
<deploy>
Expand Down Expand Up @@ -70,7 +70,10 @@

</appdetail>

## 使用流程



## 部署流程

<usedetail id="flushContent">

Expand All @@ -89,7 +92,13 @@
![](https://img.alicdn.com/imgextra/i4/O1CN01WYPc2X1wcjhUAXa65_!!6000000006329-0-tps-1596-876.jpg)


### 二次开发

</usedetail>

## 二次开发指南

<development id="flushContent">

您可以通过云端控制台的开发功能进行二次开发, 上面的示例, 解压保存回去的都还是本身触发函数的 OSS, 如果是保存到其他 OSS, 直接将 `bucket.put_object(newKey + name, file_obj)` 这样上传回 oss 的代码修改下即可, 比如:

```python
Expand All @@ -100,12 +109,10 @@ dst_bucket.put_object(newKey + name, file_obj)

```

</usedetail>
</development>



## 注意事项

<matters id="flushContent">



</matters>