node.js - Azure 应用服务 Node.js 后端

标签 node.js azure azure-app-service-envrmnt azure-app-api

我们如何使用 Azure 后端 Node.js 访问 Azure 应用服务中的应用设置?

以前在 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

Any settings or connection strings defined in the Azure portal or through environment settings are available on the process.env variable. Many of these are normalized into the mobile app configuration object (exposed through req.azureMobile.configuration), but if you've added any custom settings, use process.env.

EG

var appSettings = process.env

关于node.js - Azure 应用服务 Node.js 后端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39386898/

相关文章:

Javascript promise : Can I know which part of promise chain caused error?

c# - 在 Visual Studio 中调试 x64 Azure Functions

azure - Azure应用服务环境是否适合微服务架构

bash - 无法通过 Bash 创建文件

mysql - Node unhandel promises 和 imports oop

node.js - 有人创建过在 IISNode 下运行的 Node.js、Angular2 应用程序吗?

javascript - 如何使用feathers.js避免服务在钩子(Hook)中多次运行?

azure - 如何让 Microsoft Azure Speech To Text 在程序运行时开始转录? (统一,C#)

Azure Service Fabric - Owin 上的 Web Api - https 问题

azure - 使用rest api启动停止azure应用程序服务