环境
- env - 环境
- profile - 配置文件/配置轮廓
- --spring.profiles.active
- envrionment variable - 环境变量
abbr. | for | cn |
---|---|---|
staging | 预发布 | |
dev | development | 开发 |
prod | production | 生产 |
test | test/testing | 测试 |
perf | performance | 性能测试 |
bench | benchmark | 基准测试 |
sit | System Integration Testing | 系统集成测试, 由公司 |
uat | User Acceptance Testing | 用户验收测试, 由用户 |
next | 下一个版本 | |
alpha | 内部测试 | |
beta | 公测 | |
ga | general availability | 正式发布 |
rc | release candidate | 发布候选版本 |
cr | code review | 代码审查 |
stable | 稳定版本 | |
EAP | Early Access Program | 早期访问计划 |
- 开发->测试->上线
- SIT -> UAT
- 面向生命周期
- 开发、测试、预发布、生产、性能测试
- dev/test/staging/prod/perf
- local/development/staging/production/testing
- dev/test/staging/prod
- development/test/stage/produciton
- 预发布 - staging/pre/next
- 性能测试 - performance/perf/benchmark/bench
- 面向环境
- region
- zone
- APP_ENV
- larval - local, production, testing
- NODE_ENV - production, development, test
- SPRING_PROFILES_ACTIVE,spring.profiles.active
- .NET
- DOTNET_ENVIRONMENT
- ASPNETCORE_ENVIRONMENT
- NEXT_PUBLIC_VERCEL_ENV, VERCEL_ENV
- production, preview, development
- https://docs.digitalocean.com/products/app-platform/how-to/use-environment-variables/
- APP_DOMAIN, APP_URL, APP_ID
__DEV__
变量- 由 RN 引入 https://reactnative.dev/docs/javascript-environment
- ReactRouter 也使用了这个变量 https://github.com/search?q=repo%3Aremix-run%2Freact-router%20__DEV__&type=code
- 通过 rollup 注入了变量
__PROD__
变量- import.meta.env
- by Vite
vars
- NO_COLOR - 关闭彩色输出
- DNT - Do Not Track - 关闭 Telemetry