大写蛇形命名的 Azure 应用程序设置

huangapple go评论69阅读模式
英文:

Uppercase Snake Case Application Settings in Azure

问题

我们正在进行一个涉及在发布时应用 Azure 应用程序设置的练习。我们试图对不同类型的设置进行分类,并一直遇到 Azure 中的大写蛇形命名应用程序设置。例如:

WEBSITE_TIME_ZONE

我在网上搜索过,但未能找到这些类型的应用程序设置的常见命名组。这些设置的官方命名是什么?

英文:

We're doing an exercise involving applying application settings in Azure at the point of release. We're trying to categorise different types of settings and keep coming across the uppercase, snake case application settings in Azure. For example:

WEBSITE_TIME_ZONE

I've looked online but failed to find a common naming group for these type of application settings. What's the official naming for these types of settings?

答案1

得分: 1

在Azure的上下文中,这些设置通常被称为“Azure环境变量”或“Azure应用程序设置”。

在Azure中,大写字母和下划线的设置通常被称为“保留”或“众所周知”的应用程序设置。

这些设置是预定义的,在Azure Web应用程序或其他支持应用程序设置的Azure服务的上下文中具有特定的含义。它们用于控制应用程序的行为、配置或运行时环境的各个方面。

以下是一些常用的在Azure中保留的应用程序设置示例:

  1. WEBSITE_TIME_ZONE:指定Web应用程序的默认时区。
  2. WEBSITE_RUN_FROM_PACKAGE:用于部署场景,当您想要从一个包中运行应用程序时使用。
  3. WEBSITE_NODE_DEFAULT_VERSION:设置应用程序的默认Node.js版本。
英文:

Putting this an answer as discussed in comment:

In the context of Azure, these settings are typically referred to as "Azure environment variables" or "Azure application settings."

Azure that are in uppercase with underscores is often referred to as "reserved" or "well-known" application settings.

These settings are pre-defined and have specific meanings in the context of Azure Web Apps or other Azure services that support application settings. They are used to control various aspects of the app's behavior, configuration, or runtime environment.

Here are some examples of commonly used reserved application settings in Azure:

  1. WEBSITE_TIME_ZONE: Specifies the default time zone for the web app.
  2. WEBSITE_RUN_FROM_PACKAGE: Used for deployment scenarios when you want to run the app from a package.
  3. WEBSITE_NODE_DEFAULT_VERSION: Sets the default Node.js version for the app.

huangapple
  • 本文由 发表于 2023年7月20日 16:57:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/76728236.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定