流星应用程序如何知道是否在开发,测试或生产环境中运行? [英] How a meteor application knows if it's running on development, test or production environment?

查看:229
本文介绍了流星应用程序如何知道是否在开发,测试或生产环境中运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

由于流星应用程序作为开发,测试或生产环境运行时,我需要使用不同的帐户提供商的配置。 Meteor 1.3这些标志是开箱即用的:

  Meteor.isDevelopment 
Meteor.isProduction
流星。 isTest
Meteor.isAppTest


I need to use different accounts provider's configurations when the meteor application runs as Development, Test or Production environment.

解决方案

Since Meteor 1.3 these flags work out of the box:

Meteor.isDevelopment
Meteor.isProduction
Meteor.isTest
Meteor.isAppTest

这篇关于流星应用程序如何知道是否在开发,测试或生产环境中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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