Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How a meteor application knows if it's running on development, test or production environment?

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

like image 703
jbernab Avatar asked Jun 25 '12 04:06

jbernab


People also ask

How do you run a Meteor project?

You can run it from the root directory of the project or from any subdirectory. Use 'meteor create ' to create a new Meteor project. Commands: run [default] Run this project in local development mode. ... run is the default in case no other command is specified after meteor .


1 Answers

Since Meteor 1.3 these flags work out of the box:

Meteor.isDevelopment Meteor.isProduction Meteor.isTest Meteor.isAppTest 
like image 108
Ziarno Avatar answered Sep 17 '22 00:09

Ziarno