如果我们处于预览模式或已部署版本,如何同时检入服务器端脚本和客户端脚本 [英] How to check in both server-side and client-side scripts if we are in preview mode or deployed version

查看:61
本文介绍了如果我们处于预览模式或已部署版本,如何同时检入服务器端脚本和客户端脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在AppMaker中: 有没有办法使以预览模式运行的应用程序与以部署版本运行的应用程序有所不同?

In AppMaker: Is there a way to make a difference between the app running in preview mode and the app running as a deployed version ?

因为我的应用正在发送邮件并且正在设置Apps脚本触发器,但是在预览模式和部署版本中,这些触发器的配置应该有所不同.

Because my app is sending mails and is setting Apps scripts triggers but the config for those should be different in preview mode and deployed versions.

谢谢

推荐答案

预览只是另一个部署.它有自己的驱动器表.一种选择是将配置存储在驱动器表中.

The preview is just another deployment. It has its own drive table. One option is to store your config in drive table.

这篇关于如果我们处于预览模式或已部署版本,如何同时检入服务器端脚本和客户端脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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