AppMaker:每个部署的环境变量?获取部署名称? [英] AppMaker: environment variables per deployment ? Get the deployment name?

查看:65
本文介绍了AppMaker:每个部署的环境变量?获取部署名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有时候我问过这个问题:

Some times ago I asked this: How to check in both server-side and client-side scripts if we are in preview mode or deployed version

因为我希望代码中的预览模式与否都具有不同的逻辑.

Because I wanted in my code to have different logic whether it is the preview mode or not.

答案是预览模式只是另一个部署,每个部署都有自己的Drive表,在其中存储了一些env变量".没错,这很成功.

The answer was "preview mode is just another deployment and each deployment has its own Drive table, store some env variables there". That was true and made the trick.

问题:驱动器表不再存在.

过去几个月来我一直没有与AppMaker合作,所以也许我错过了新功能:

I have not been working with AppMaker the past months so maybe I have missed new features:

  • 如何为每个部署设置环境变量? (这样我就可以 产品部署与产品部署前部署之间的差异)

  • how can I set environment variables per deployment ? (so I can make a difference between my prod deployment and my pre-prod deployment)

是否可以从代码中获取当前部署名称?

is there a way to get the current deployment name from the code ?

感谢您的回答

推荐答案

可以使用 Google脚本属性服务.

这篇关于AppMaker:每个部署的环境变量?获取部署名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆