node.js - Is there way to indicate architecture (32 or 64 bit) when configuring node js in azure? -
i know azure web sites/app respects following element in package.json in node js application configuring host node , desired npm:
"engines": { "node": "6.11.1", "npm": "4.6.1" }
is there way indicate require either 32-bit or 64-bit version of node hosting in azure web apps?
the node.js (npm) package.json
file has cpu property should achieve you're looking for.
from npmjs package docs -
cpu
if code runs on cpu architectures, can specify ones.
"cpu" : [ "x64", "ia32" ]
os option, can blacklist architectures:
"cpu" : [ "!arm", "!mips" ]
host architecture determined process.arch
in case, if you'd set azure environment 32bit, set "cpu" : [ "ia32" ]
; if you'd 64 bit environment, set "cpu" : [ "x64" ]
.
Comments
Post a Comment