Git Product home page Git Product logo

Comments (5)

hryang avatar hryang commented on September 23, 2024

我是初学者,想用 s 体验 jmstack。按照提示使用 s 初始化 DK HTTP API 模板。然后执行 s deploy 时遇到如下问题:
图片

然后走不下去了。我期望模板有对应的文档能告知正确的配置,典型错误处理。让初学者也能顺利的玩起来。

from serverless-devs.

xsahxl avatar xsahxl commented on September 23, 2024

我是初学者,想用 s 体验 jmstack。按照提示使用 s 初始化 DK HTTP API 模板。然后执行 s deploy 时遇到如下问题:
图片

然后走不下去了。我期望模板有对应的文档能告知正确的配置,典型错误处理。让初学者也能顺利的玩起来。

可以先检查下是否正确配置了密钥

部署成功后,可以去fc控制台 https://fc.console.aliyun.com/ 查看自己部署的函数

from serverless-devs.

hryang avatar hryang commented on September 23, 2024

弄明白了。这个问题是这样的:我配置了密钥,按照默认一路点回车,最后配置的账户信息是在 default 这个 alias 中。但是 s init 这个模板,s.yml 默认的alias是 alibaba.default ,所以我还是会遇到错误。建议做两个改进:

  1. 可以提醒用户工具配置了哪些 alias,模版要求的账户 alias 是什么,有没有配置好。
  2. 把 s config 设置的默认 alias 和模板 s.yml 中的默认 alias 统一起来。

from serverless-devs.

heimanba avatar heimanba commented on September 23, 2024

在这个示例中s.yml没有默认的alias哈,需要去选择alias, 这里的alias其实来自于 s config中的设置的。
image

from serverless-devs.

anycodes avatar anycodes commented on September 23, 2024

这个问题的解决方案:在初始化项目的时候要求用户选择密钥信息。

from serverless-devs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.