Git Product home page Git Product logo

Comments (3)

anycodes avatar anycodes commented on September 23, 2024

感谢大佬的支持,首先是这样的,出不来看您这里是部署成功的,您这里可以看一下template.yaml内容。这里会描述地点,服务和函数的具体名字的。

至于您说的没有触发器,其实这个可能是一个event函数,如果您需要通过http访问,您可以创建一个http函数:

s init python3-http -p alibaba && cd python3-http && s deploy

有任何问题可以继续反馈。随时在线,

from serverless-devs.

curionox avatar curionox commented on September 23, 2024

我这边就是启动s gui,然后选择了python3这个例子,配置访问证书后,点击部署,执行窗口为上面输出内容。是我哪里流程错了吗?
template.yaml内容为:
MyFunctionDemo:
Component: fc
Provider: alibaba
Properties:
Region: cn-hangzhou
Service:
Name: ServerlessToolProject
Description: 欢迎使用ServerlessTool
Function:
Name: serverless_demo_python3
Description: 这是一个Python3的测试案例
CodeUri: ./
Handler: index.handler
MemorySize: 128
Runtime: python3
Timeout: 5
Access: 'ali'

from serverless-devs.

anycodes avatar anycodes commented on September 23, 2024

好的,您这里操作是没有错的。是这样的,函数计算实际上你可以简单的分成两个部分:

  • 函数本身
  • 触发器
    您这里是部署了一个函数本身,您如果需要通过http访问的话,还需要部署一个触发器,您如果gui的话,您可以选择这样一个来实验:
    image

这个Python3-http实际上是可以自带一个http触发器,会给您默认返回一个url,您可以通过http方法访问。

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.