VIKASH SINHA
VIKASH SINHA

Reputation: 250

How do I set environment variable in Setting.json[Meteor]

export CLUSTER_WORKERS_COUNT=auto(All Available Core)

Need to add this setting.json

Upvotes: 0

Views: 859

Answers (3)

yogesh
yogesh

Reputation: 36

I think you are using meteor on windows command line .

export CLUSTER_WORKERS_COUNT=auto

so for windows you should use this

set CLUSTER_WORKERS_COUNT=auto

this should resolve your problem

Upvotes: 2

VIKASH SINHA
VIKASH SINHA

Reputation: 250

I have added this code in main.js

 Meteor.startup(() => {
       process.env.CLUSTER_WORKERS_COUNT='auto';

 });

Upvotes: 1

Kamil
Kamil

Reputation: 331

it's not set up in settings.json it's a shell variable https://meteorhacks.com/introducing-multi-core-support-for-meteor/

Upvotes: 0

Related Questions