Skip to content
This repository has been archived by the owner on Jul 8, 2023. It is now read-only.

腾讯云函数部署

Cyang39 edited this page Jan 24, 2021 · 5 revisions

在腾讯云产品中找到「云函数 - 函数服务」:

入口

选择「新建」:

新建

选择「模板创建」-> 「Web静态页面托管(Node.js)」

模板

依次点击「下一步」、「完成」,稍等片刻完成部署。

部署完成后,选择「触发管理」,显示的链接地址将是 API 访问地址,此时打开会是模板中的静态页面:

链接

进入「函数管理」-> 「函数代码」

代码

此页面有一个 Cloud IDE,打开其「终端」

终端

在「终端」运行

rm -rf src
git clone https://github.com/Cyang39/TeambitionShareJson src
cd src
npm install

在 Cloud IDE 中编辑 src/config.jssrc/filter.js,点击部署

部署

此时访问之前的链接,可以看到返回接口调用

Clone this wiki locally