Commit 97ef6ea4 authored by Gilles Filippini's avatar Gilles Filippini
Browse files

feat: env vars for cpu and nbCores pow parameters

DUNITER_POW_CPU
DUNITER_POW_NBCORES
parent 2ae2c87d
Pipeline #13022 waiting for manual action with stages
......@@ -485,8 +485,8 @@ function commandLineConf(program:any, conf:any = {}) {
conf = conf || {};
const cli = {
currency: program.currency,
cpu: program.cpu,
nbCores: program.nbCores,
cpu: process.env.DUNITER_POW_CPU ? parseFloat(process.env.DUNITER_POW_CPU) : program.cpu,
nbCores: process.env.DUNITER_POW_NBCORES ? parseInt(process.env.DUNITER_POW_NBCORES) : program.nbCores,
prefix: program.prefix,
server: {
port: program.port,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment