我正在遵循本指南:Aliyun Function Compute Serverless Plugin尝试使用无服务器框架在阿里云功能计算下使用新的Node.js无服务器功能创建新服务。 / strong>以及 Aliyun功能计算无服务器插件。
但是,在完成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
答案 0 :(得分:0)
您是否尝试过在serverless config
之前运行serverless deploy
,看看是否可行?在Aliyun插件回购的“问题”部分下,您可以找到以下线程:
https://github.com/aliyun/serverless-aliyun-function-compute/issues/3