-1
我们如何使用Azure后端Node.js访问Azure App Service中的应用程序设置?Azure应用程序服务Node.js后端
以前在Azure的移动服务,我们可以使用:
require('mobileservice-config');
但是,这已不再有效。
我们如何使用Azure后端Node.js访问Azure App Service中的应用程序设置?Azure应用程序服务Node.js后端
以前在Azure的移动服务,我们可以使用:
require('mobileservice-config');
但是,这已不再有效。
以下是MSDN中与您在同一场景中的一个线索,位于https://social.msdn.microsoft.com/Forums/azure/en-US/1052696e-f37a-4946-a833-5e3912ac3ab8/nodejs-get-app-settings?forum=azuremobile。
在Azure门户中定义的任何设置或连接字符串或通过环境设置在
process.env
变量上都可用。其中许多标准化为移动应用配置对象(通过req.azureMobile.configuration
公开),但如果您添加了任何自定义设置,请使用process.env
。
E.G.
var appSettings = process.env
嗨,现在有任何更新?对你有帮助吗? –