英文:
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中保留的应用程序设置示例:
- WEBSITE_TIME_ZONE:指定Web应用程序的默认时区。
- WEBSITE_RUN_FROM_PACKAGE:用于部署场景,当您想要从一个包中运行应用程序时使用。
- 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:
- WEBSITE_TIME_ZONE: Specifies the default time zone for the web app.
- WEBSITE_RUN_FROM_PACKAGE: Used for deployment scenarios when you want to run the app from a package.
- WEBSITE_NODE_DEFAULT_VERSION: Sets the default Node.js version for the app.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论