We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b4f9af commit ae83136Copy full SHA for ae83136
docs/deploy-in-docker.md
@@ -72,6 +72,14 @@ CNPMCORE_LOG_DIR=/var/log/cnpmcore
72
CNPMCORE_CONFIG_REGISTRY=https://your-registry.com
73
```
74
75
+### 时区
76
+
77
+时区可以通过环境变量`TZ`来设置,可以使用地区标识符如`Asia/Shanghai`,也可以使用时区标识符如`Etc/GMT-8`(东八区)、`Etc/GMT+8`(西八区),具体TZ列表见[List](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)。
78
79
+```bash
80
+TZ=Asia/Shanghai
81
+```
82
83
### 使用 `config.prod.js` 覆盖
84
85
直接覆盖 `/usr/src/app/config/config.prod.js` 文件也可以实现生产配置自定义。
@@ -145,6 +153,7 @@ docker run -p 7001:7001 -it --rm \
145
153
-e CNPMCORE_REDIS_PORT=6379 \
146
154
-e CNPMCORE_REDIS_PASSWORD=your-redis-password \
147
155
-e CNPMCORE_REDIS_DB=1 \
156
+ -e TZ=Asia/Shanghai \
148
157
--name cnpmcore-prod cnpmcore
149
158
150
159
0 commit comments