Skip to content

s local start环境变量不生效 #991

Description

@lidongking
function:
        handler: main
        timeout: 3
        diskSize: 512
        instanceType: e1
        runtime: go1
        cpu: 0.05
        instanceConcurrency: 100
        memorySize: 128
        environmentVariables:
          TZ: Asia/Shanghai
          AA: A_A_A_A_A_A_A
        name: func-0fd6fg03
        asyncConfiguration: {}

s local start

go代码里 os.Getenv("AA")获取不到环境变量AA,但是部署到线上是可以获取到环境变量AA。
image: registry.cn-beijing.aliyuncs.com/aliyunfc/runtime-go1:1.10.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions