Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lidongking opened this issue Jul 28, 2023 · 1 comment
Open

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

lidongking opened this issue Jul 28, 2023 · 1 comment

Comments

@lidongking
Copy link

lidongking commented Jul 28, 2023

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

@lidongking
Copy link
Author

lidongking commented Aug 11, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant