- Hands-On Full:Stack Web Development with ASP.NET Core
- Tamir Dresher Amir Zuker Shay Friedman
- 189字
- 2021-06-10 19:37:23
Different startups for different environments
Applications run in different environments, such as development, staging, and deployment:
- Development environment: Where developers run their freshly written code; this is usually their own machine.
- Staging environment: An environment similar to the production environment, but not open to the public. Used to test the application on similar conditions as the production environment.
- Production environment: Where the application runs publicly, usually on the cloud or a hosting company.
Every environment has a different set of configurations — for example, in development, logging will be set to verbose mode, meaning that all logs should be written, while in production, logging will be set to warning mode, so only warnings and errors will be logged.
ASP.NET Core supports supplying different Startup classes for each environment. To do this, you can create different classes with names following the convention of Startup{Environment Name}. For example, StartupDevelopment will run under the development environment and StatupProduction will run under the production environment.
The current environment is set via the ASPNETCORE_ENVIRONMENT environment variable, which you can change based on the environment you run on - Development, Testing, Production and so on.
- EDA技術(shù)與VHDL編程
- Twilio Cookbook
- Hands-On Industrial Internet of Things
- 走進(jìn)物聯(lián)網(wǎng)
- 通信簡(jiǎn)史:從信鴿到6G+
- 企業(yè)私有云建設(shè)指南
- 基于性能的保障理論與方法
- Working with Legacy Systems
- jQuery Mobile Web Development Essentials
- TD-LTE無(wú)線網(wǎng)絡(luò)規(guī)劃與設(shè)計(jì)
- 紅藍(lán)攻防:構(gòu)建實(shí)戰(zhàn)化網(wǎng)絡(luò)安全防御體系
- INSTANT LinkedIn Customization How-to
- Implementing NetScaler VPX?
- 物聯(lián)網(wǎng)與智慧廣電
- 黑客與反黑工具使用詳解