Skip to content

Commit b32c497

Browse files
committed
f
1 parent 4097ab1 commit b32c497

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

DEVELOPER.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ npm run dev
5353

5454
# 访问
5555
curl -v http://127.0.0.1:7001
56-
57-
# cnpmcore_admin 注册管理员
58-
npm login --registry=http://127.0.0.1:7001
5956
```
6057

6158
### 开发运行 - PostgreSQL

docs/deploy-in-docker.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ CNPMCORE_LOG_DIR=/var/log/cnpmcore
8282

8383
```bash
8484
CNPMCORE_CONFIG_REGISTRY=https://your-registry.com
85+
# 从中国镜像获取数据
86+
CNPMCORE_CONFIG_SOURCE_REGISTRY=https://registry.npmmirror.com
87+
CNPMCORE_CONFIG_SOURCE_REGISTRY_IS_CNPM=true
8588
```
8689

8790
### 时区
@@ -100,6 +103,8 @@ TZ=Asia/Shanghai
100103
module.exports = {
101104
cnpmcore: {
102105
registry: 'https://your-registry.com',
106+
sourceRegistry: 'https://registry.npmmirror.com',
107+
sourceRegistryIsCNpm: true,
103108
enableWebAuthn: true,
104109
},
105110
orm: {
@@ -151,6 +156,8 @@ docker run -p 7001:7001 -it --rm \
151156
```bash
152157
docker run -p 7001:7001 -it --rm \
153158
-e CNPMCORE_CONFIG_REGISTRY=https://your-registry.com \
159+
-e CNPMCORE_CONFIG_SOURCE_REGISTRY=https://registry.npmmirror.com \
160+
-e CNPMCORE_CONFIG_SOURCE_REGISTRY_IS_CNPM=true \
154161
-e CNPMCORE_DATABASE_TYPE=MySQL \
155162
-e CNPMCORE_DATABASE_NAME=cnpmcore \
156163
-e CNPMCORE_DATABASE_HOST=127.0.0.1 \
@@ -177,6 +184,8 @@ docker run -p 7001:7001 -it --rm \
177184
```bash
178185
docker run -p 7001:7001 -it --rm \
179186
-e CNPMCORE_CONFIG_REGISTRY=https://your-registry.com \
187+
-e CNPMCORE_CONFIG_SOURCE_REGISTRY=https://registry.npmmirror.com \
188+
-e CNPMCORE_CONFIG_SOURCE_REGISTRY_IS_CNPM=true \
180189
-e CNPMCORE_DATABASE_TYPE=PostgreSQL \
181190
-e CNPMCORE_DATABASE_NAME=cnpmcore \
182191
-e CNPMCORE_DATABASE_HOST=127.0.0.1 \

0 commit comments

Comments
 (0)