How do I switch the environment in CompoundJS?

I am very new to CompoundJS. I am working on a sample application that accesses data in MongoDB. I am wondering if there is a way to switch the environment in CompoundJS like in Rails (RAILS_ENV = development / test / production). Any help would be greatly appreciated. Thanks in advance.

+3


source to share


1 answer


As usual in nodejs, you can use the NODE_ENV variable (same as RAILS_ENV in ruby ​​/ rails):

NODE_ENV=production node .

      



Should work for joining (from the working directory of your complex project).

+5


source







All Articles