Skip to content

s deploy 部署火山引擎项目的目录结构信息丢失了 #936

@akira-cn

Description

@akira-cn

Describe the bug

s init volcano-webserver-node14 创建一个火山引擎项目,初始化之后,如果code文件夹下创建子目录,在子目录中的文件在 s deploy 时会丢失目录结构,直接传到根目录下了,这导致如果有npm依赖,node_modules 目录也不存在了,从而部署失败。

Screenshots

Image

本来应该是 test/test.js,test 目录信息丢失
Image

Desktop (please complete the following information):

  • OS: MacOS
  • Version:@serverless-devs/s: 3.1.10, s-home: /Users/akira/.s, darwin-arm64, node-v18.17.1

Additional context

生成的 s.yaml 配置:

edition: 3.0.0
name: volcano-webserver-node14
access: "default"

vars:
  sid: "6zxz"
  region: "cn-beijing"
  functionName: "webserver-node14-t0dz"

resources:
  framework:
    component: volcano-vefaas@0.1.7
    actions:
      pre-deploy:
        - run: npm install --registry=https://registry.npmmirror.com
          path: ./code
    props:
      common:
        Region: ${vars.region}
      function:
        Name: ${vars.functionName}
        Description: 此函数由 volcano-webserver-node14 应用创建
        ExclusiveMode: false
        RequestTimeout: 30
        Runtime: node14/v1
        SourceType: zip
        Source: ./code
        MaxConcurrency: 100
        MemoryMB: 512
        Processor: cpu
      triggers:
        - TriggerName: apig-trigger
          TriggerType: apig
          GatewayId: "gd0v3v4nf2h21nr375970"
          ServiceName: "service-6zxz"
          UpstreamName: "upstream-6zxz"
          RouteName: default
          Path: '/'
          Method:
            - POST
            - GET
            - PUT
            - DELETE
            - HEAD
            - OPTIONS
            - CONNECT

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions