2022-08-09 14:57:03 +02:00

806 B

Config variables

  {
    MASTER_PORT: what port the master is listening on
    PRESHARED_MASTER_KEY: clients must provide this value when uploading stats,
    CONF_ENS_TIMEOUT: timeout in ms after which it will pull new ENS domain names from nFrame
  }

Run production

Note: this folder has to be placed in /orchTest/master

npm install
nano src/config.js

example config.js:

export const {
    MASTER_PORT = 42069,
    PRESHARED_MASTER_KEY = "koekjes",
    CONF_ENS_TIMEOUT = 360000
} = process.env;
pm2 start ecosystem.config.js

Run development

npm install
nano src/config.js

example config.js:

export const {
    MASTER_PORT = 42069,
    PRESHARED_MASTER_KEY = "koekjes",
    CONF_ENS_TIMEOUT = 360000
} = process.env;
npm run dev