feat: update docs
This commit is contained in:
parent
0a87b07090
commit
30afeb0a99
@ -70,14 +70,14 @@ NocoBase 采用插件化架构,所有新功能都可以通过开发和安装
|
||||
|
||||
NocoBase 支持三种安装方式:
|
||||
|
||||
- <a target="_blank" href="https://docs.nocobase.com/welcome/getting-started/installation/docker-compose">Docker 安装(推荐)</a>
|
||||
- <a target="_blank" href="https://docs-cn.nocobase.com/welcome/getting-started/installation/docker-compose">Docker 安装(推荐)</a>
|
||||
|
||||
适合无代码场景,不需要写代码。升级时,下载最新镜像并重启即可。
|
||||
|
||||
- <a target="_blank" href="https://docs.nocobase.com/welcome/getting-started/installation/create-nocobase-app">create-nocobase-app 安装</a>
|
||||
- <a target="_blank" href="https://docs-cn.nocobase.com/welcome/getting-started/installation/create-nocobase-app">create-nocobase-app 安装</a>
|
||||
|
||||
项目的业务代码完全独立,支持低代码开发。
|
||||
|
||||
- <a target="_blank" href="https://docs.nocobase.com/welcome/getting-started/installation/git-clone">Git 源码安装</a>
|
||||
- <a target="_blank" href="https://docs-cn.nocobase.com/welcome/getting-started/installation/git-clone">Git 源码安装</a>
|
||||
|
||||
如果你想体验最新未发布版本,或者想参与贡献,需要在源码上进行修改、调试,建议选择这种安装方式,对开发技术水平要求较高,如果代码有更新,可以走 git 流程拉取最新代码。
|
||||
|
@ -27,7 +27,7 @@ yarn install
|
||||
|
||||
## 4. Set environment variables
|
||||
|
||||
The environment variables required by NocoBase are stored in the root `.env` file, modify the environment variables according to the actual situation, if you don't know how to change them, [click here for environment variables description](../../development/env.md), or you can leave it as default.
|
||||
The environment variables required by NocoBase are stored in the root `.env` file, modify the environment variables according to the actual situation, if you don't know how to change them, [click here for environment variables description](/api/env), or you can leave it as default.
|
||||
|
||||
```bash
|
||||
# Using sqlite database
|
||||
|
@ -14,7 +14,7 @@ git pull
|
||||
|
||||
## 3. Update dependencies
|
||||
|
||||
```
|
||||
```bash
|
||||
yarn install
|
||||
```
|
||||
|
||||
|
@ -29,7 +29,7 @@ yarn install
|
||||
|
||||
## 4. 设置环境变量
|
||||
|
||||
NocoBase 所需的环境变量储存在根目录 `.env` 文件里,根据实际情况修改环境变量,如果你不知道怎么改,[点此查看环境变量说明](../../development/env.md),也可以保持默认。
|
||||
NocoBase 所需的环境变量储存在根目录 `.env` 文件里,根据实际情况修改环境变量,如果你不知道怎么改,[点此查看环境变量说明](/api/env),也可以保持默认。
|
||||
|
||||
```bash
|
||||
# 使用 sqlite 数据库
|
||||
|
@ -42,14 +42,7 @@ export class PluginManager {
|
||||
this.repository = this.collection.repository as PluginManagerRepository;
|
||||
this.repository.setPluginManager(this);
|
||||
this.app.resourcer.define(resourceOptions);
|
||||
this.app.acl.use(async (ctx, next) => {
|
||||
if (ctx.action.resourceName === 'pm') {
|
||||
ctx.permission = {
|
||||
skip: true,
|
||||
};
|
||||
}
|
||||
await next();
|
||||
});
|
||||
this.app.acl.allow('pm', ['enable', 'disable', 'remove'], 'allowConfigure');
|
||||
this.server = net.createServer((socket) => {
|
||||
socket.on('data', async (data) => {
|
||||
const { method, plugins } = JSON.parse(data.toString());
|
||||
|
Loading…
Reference in New Issue
Block a user