【发布时间】:2018-11-28 14:30:10
【问题描述】:
我正在按照本指南:Aliyun Function Compute Serverless Plugin 尝试使用 无服务器框架 在 阿里巴巴云函数计算 下使用新的 Node.js 无服务器功能创建新服务> 以及阿里云函数计算无服务器插件。
但是,在我使用serverless deploy 命令之后,我只能在阿里云函数计算控制台中看到一个没有创建任何函数的新服务,这不是我所期望的。
我在部署过程中没有看到任何错误。
有人对此有任何经验和解决方案吗? 非常感谢!
serverless.yml如下图:
service: aliyun-nodejs
provider:
name: aliyun
runtime: nodejs8
credentials: <private>
plugins:
- serverless-aliyun-function-compute
package:
exclude:
- package-lock.json
- .gitignore
- .git/**
functions:
hello:
handler: index.hello
events:
- http:
path: /foo
method: get
【问题讨论】:
标签: node.js serverless-framework alibaba-cloud serverless-plugins alibaba-cloud-function-compute