Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Feb 9, 2025
1 parent 4097ab1 commit b32c497
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 0 additions & 3 deletions DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ npm run dev

# 访问
curl -v http://127.0.0.1:7001

# cnpmcore_admin 注册管理员
npm login --registry=http://127.0.0.1:7001
```

### 开发运行 - PostgreSQL
Expand Down
9 changes: 9 additions & 0 deletions docs/deploy-in-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ CNPMCORE_LOG_DIR=/var/log/cnpmcore

```bash
CNPMCORE_CONFIG_REGISTRY=https://your-registry.com
# 从中国镜像获取数据
CNPMCORE_CONFIG_SOURCE_REGISTRY=https://registry.npmmirror.com
CNPMCORE_CONFIG_SOURCE_REGISTRY_IS_CNPM=true
```

### 时区
Expand All @@ -100,6 +103,8 @@ TZ=Asia/Shanghai
module.exports = {
cnpmcore: {
registry: 'https://your-registry.com',
sourceRegistry: 'https://registry.npmmirror.com',
sourceRegistryIsCNpm: true,
enableWebAuthn: true,
},
orm: {
Expand Down Expand Up @@ -151,6 +156,8 @@ docker run -p 7001:7001 -it --rm \
```bash
docker run -p 7001:7001 -it --rm \
-e CNPMCORE_CONFIG_REGISTRY=https://your-registry.com \
-e CNPMCORE_CONFIG_SOURCE_REGISTRY=https://registry.npmmirror.com \
-e CNPMCORE_CONFIG_SOURCE_REGISTRY_IS_CNPM=true \
-e CNPMCORE_DATABASE_TYPE=MySQL \
-e CNPMCORE_DATABASE_NAME=cnpmcore \
-e CNPMCORE_DATABASE_HOST=127.0.0.1 \
Expand All @@ -177,6 +184,8 @@ docker run -p 7001:7001 -it --rm \
```bash
docker run -p 7001:7001 -it --rm \
-e CNPMCORE_CONFIG_REGISTRY=https://your-registry.com \
-e CNPMCORE_CONFIG_SOURCE_REGISTRY=https://registry.npmmirror.com \
-e CNPMCORE_CONFIG_SOURCE_REGISTRY_IS_CNPM=true \
-e CNPMCORE_DATABASE_TYPE=PostgreSQL \
-e CNPMCORE_DATABASE_NAME=cnpmcore \
-e CNPMCORE_DATABASE_HOST=127.0.0.1 \
Expand Down

0 comments on commit b32c497

Please sign in to comment.