Environment variables specified on app.yaml but it's not fetching on main.go

前端 未结 2 627
孤城傲影
孤城傲影 2021-01-24 03:34

I\'ve specified my environment variables in app.yaml and it\'s being fetched when I\'m running it on my local machine but once I have it deployed - it\'s not fetching it.

2条回答
  •  太阳男子
    2021-01-24 03:39

    The answer icza provided worked for me. In addition, I put the once.Do() call in a handler for the /_ah/start method so that it would be called immediately when GAE started up my application.

提交回复
热议问题