流星应用程序如何知道它是在开发、测试还是生产环境中运行? [英] How a meteor application knows if it's running on development, test or production environment?
本文介绍了流星应用程序如何知道它是在开发、测试还是生产环境中运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当meteor 应用程序作为开发、测试或生产环境运行时,我需要使用不同的帐户提供商的配置.
I need to use different accounts provider's configurations when the meteor application runs as Development, Test or Production environment.
推荐答案
自 Meteor 1.3 起,这些标志开箱即用:
Since Meteor 1.3 these flags work out of the box:
Meteor.isDevelopment
Meteor.isProduction
Meteor.isTest
Meteor.isAppTest
这篇关于流星应用程序如何知道它是在开发、测试还是生产环境中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文