|
1 | | -# CDN备源信息同步案例 |
| 1 | +# cdn-backup-source 帮助文档 |
2 | 2 |
|
3 | | -> 快速部署和体验Serverless架构下的CDN备源信息同步项目 |
4 | | -- [体验前准备](#体验前准备) |
5 | | -- [代码与预览](#代码与预览) |
6 | | -- [快速部署和体验](#快速部署和体验) |
7 | | - - [在线快速体验](#在线快速体验) |
8 | | - - [在本地部署体验](#在本地部署体验) |
| 3 | +<p align="center" class="flex justify-center"> |
| 4 | + <a href="https://www.serverless-devs.com" class="ml-1"> |
| 5 | + <img src="http://editor.devsapp.cn/icon?package=cdn-backup-source&type=packageType"> |
| 6 | + </a> |
| 7 | + <a href="http://www.devsapp.cn/details.html?name=cdn-backup-source" class="ml-1"> |
| 8 | + <img src="http://editor.devsapp.cn/icon?package=cdn-backup-source&type=packageVersion"> |
| 9 | + </a> |
| 10 | + <a href="http://www.devsapp.cn/details.html?name=cdn-backup-source" class="ml-1"> |
| 11 | + <img src="http://editor.devsapp.cn/icon?package=cdn-backup-source&type=packageDownload"> |
| 12 | + </a> |
| 13 | +</p> |
9 | 14 |
|
10 | | -## 体验前准备 |
| 15 | +<description> |
11 | 16 |
|
12 | | -该应用案例需要您开通[阿里云函数计算](https://fcnext.console.aliyun.com/) 产品;并建议您当前的账号有一下权限存在`FCDefaultRole`。 |
| 17 | +> ***快速部署CDN备源信息同步项目到函数计算*** |
13 | 18 |
|
14 | | -## 代码与预览 |
| 19 | +</description> |
15 | 20 |
|
16 | | -- [:octocat: 源代码](https://github.com/devsapp/cdn-backup-source/tree/main/src) |
| 21 | +<table> |
17 | 22 |
|
18 | | -## 快速部署和体验 |
19 | | -### 在线快速体验 |
20 | 23 |
|
21 | | -- 通过阿里云 **Serverless 应用中心**: 可以点击 [【🚀 部署】](https://fcnext.console.aliyun.com/applications/create?template=cdn-backup-source) ,按照引导填入参数,快速进行部署和体验。 |
22 | | - |
23 | | -### 在本地部署体验 |
24 | 24 |
|
25 | | -1. 下载安装 Serverless Devs:`npm install @serverless-devs/s` |
26 | | - > 详细文档可以参考 [Serverless Devs 安装文档](https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/install.md) |
27 | | -2. 配置密钥信息:`s config add` |
28 | | - > 详细文档可以参考 [阿里云密钥配置文档](https://github.com/devsapp/fc/blob/main/docs/zh/config.md) |
29 | | -3. 初始化项目:`s init cdn-backup-source -d cdn-backup-source` |
30 | | -4. 进入项目后部署:`s deploy` |
31 | | -5. 部署过程中可能需要阿里云密钥的支持,部署完成之后会获得到临时域名可供测试 |
| 25 | +</table> |
32 | 26 |
|
33 | | -> 在本地使用该项目时,不仅可以部署,还可以进行更多的操作,例如查看日志,查看指标,进行多种模式的调试等,这些操作详情可以参考[函数计算组件命令文档](https://github.com/devsapp/fc#%E6%96%87%E6%A1%A3%E7%9B%B8%E5%85%B3) ; |
| 27 | +<codepre id="codepre"> |
34 | 28 |
|
35 | | ------ |
| 29 | +</codepre> |
36 | 30 |
|
37 | | -> - Serverless Devs 项目:https://www.github.com/serverless-devs/serverless-devs |
38 | | -> - Serverless Devs 文档:https://www.github.com/serverless-devs/docs |
39 | | -> - Serverless Devs 钉钉交流群:33947367 |
| 31 | +<deploy> |
| 32 | + |
| 33 | +## 部署 & 体验 |
| 34 | + |
| 35 | +<appcenter> |
| 36 | + |
| 37 | +- :fire: 通过 [Serverless 应用中心](https://fcnext.console.aliyun.com/applications/create?template=cdn-backup-source) , |
| 38 | +[](https://fcnext.console.aliyun.com/applications/create?template=cdn-backup-source) 该应用。 |
| 39 | + |
| 40 | +</appcenter> |
| 41 | + |
| 42 | +- 通过 [Serverless Devs Cli](https://www.serverless-devs.com/serverless-devs/install) 进行部署: |
| 43 | + - [安装 Serverless Devs Cli 开发者工具](https://www.serverless-devs.com/serverless-devs/install) ,并进行[授权信息配置](https://www.serverless-devs.com/fc/config) ; |
| 44 | + - 初始化项目:\`s init cdn-backup-source -d cdn-backup-source\` |
| 45 | + - 进入项目,并进行项目部署:\`cd cdn-backup-source && s deploy -y\` |
| 46 | + |
| 47 | +</deploy> |
| 48 | + |
| 49 | +<appdetail id="flushContent"> |
| 50 | + |
| 51 | +# 应用详情 |
| 52 | + |
| 53 | +通过该项目,可以快速实现 CDN 备源相关的功能。 |
| 54 | + |
| 55 | +</appdetail> |
| 56 | + |
| 57 | +<devgroup> |
| 58 | + |
| 59 | +## 开发者社区 |
| 60 | + |
| 61 | +您如果有关于错误的反馈或者未来的期待,您可以在 [Serverless Devs repo Issues](https://github.com/serverless-devs/serverless-devs/issues) 中进行反馈和交流。如果您想要加入我们的讨论组或者了解 FC 组件的最新动态,您可以通过以下渠道进行: |
| 62 | + |
| 63 | +<p align="center"> |
| 64 | + |
| 65 | +| <img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407298906_20211028074819117230.png" width="130px" > | <img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407044136_20211028074404326599.png" width="130px" > | <img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407252200_20211028074732517533.png" width="130px" > | |
| 66 | +|--- | --- | --- | |
| 67 | +| <center>微信公众号:\`serverless\`</center> | <center>微信小助手:\`xiaojiangwh\`</center> | <center>钉钉交流群:\`33947367\`</center> | |
| 68 | + |
| 69 | +</p> |
| 70 | + |
| 71 | +</devgroup> |
0 commit comments