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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -