Skip to content

Commit

Permalink
feat:调整文档位置与内容
Browse files Browse the repository at this point in the history
  • Loading branch information
microrain authored and microrain committed Nov 20, 2024
1 parent 9d66741 commit c97a3b3
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 115 deletions.
2 changes: 1 addition & 1 deletion docs/develop/compile/_category_.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"label": "编译与部署",
"label": "编译与运行",
"position": 1,
"link": {
"type": "generated-index"
Expand Down
39 changes: 39 additions & 0 deletions docs/develop/compile/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,45 @@ start|stop|restart|status|tail
分别对应 启动、停止、重启、状态、显示动态日志运行信息



### 其它问题

如果在macOS下遇到如下问题:
```
warning: ‘IOMasterPort‘ is deprecated: first deprecated in macOS 12.0 [-Wdeprecated-declarations]
```
**原因**

依赖包跟MacOS的版本有兼容问题。

解决方案
切换CGO编译方式
```
go env -w CGO_ENABLED="0"
```

安装mysql为8.x以上,则需要按照以下步骤进行修改

1. 输入管理员用户名和密码,以登录 MySQL 客户端
```mysql
mysql -uroot -p
```
2. 输入以下命令,以查看当前的 innodb_strict_mode 设置:
```mysql
SELECT @@GLOBAL.innodb_strict_mode;
```
如果该命令返回了“1”,则表示 innodb_strict_mode 已启用。如果该命令返回了“0”,则表示 innodb_strict_mode 已禁用
3. 禁用 innodb_strict_mode
```mysql
SET GLOBAL innodb_strict_mode=0;
```
4. 验证已修改的 innodb_strict_mode 设置是否生效
```mysql
SELECT @@.innodb_strict_mode;
```



## 前端源码编译

### 安装依赖
Expand Down
105 changes: 0 additions & 105 deletions docs/develop/compile/deploy.md

This file was deleted.

8 changes: 4 additions & 4 deletions docs/develop/compile/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ hide_title: true

## 开发环境

| | SagooIoT V1.x 版本 | SagooIoT V2.x版本 |
| ------- | ------------------ | -------------------------------- |
| GO | v1.6.0 - v1.20.8 | v1.21.5 以上,可以使用最新版的go |
| GoFrame | v2.2.0 | v2.6.x 最新版 |
| | SagooIoT V1.x 版本 | SagooIoT V2.x版本 |
| ------- | ------------------ |-----------------------|
| GO | v1.6.0 - v1.20.8 | v1.22.x 以上,可以使用最新版的go |
| GoFrame | v2.2.0 | v2.7.x 最新版 |


:::tip 提示
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
title: 'docker部署'
title: 'docker'
sidebar_position: 11
hide_title: true
---

可以通过Docker进行统一部署

### 服务端本地启动
## 服务端本地启动

1. 将项目clone到本地工作空间, `https://github.com/sagoo-cloud/sagooiot.git`

Expand All @@ -23,7 +24,7 @@ hide_title: true

6. 在根目录下找到`main.go`文件,并启动`iot-server`服务

### 前端本地启动
## 前端本地启动

1. 将项目clone到本地工作空间, `https://github.com/sagoo-cloud/sagooiot-ui.git`.

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/install/other-install.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "服务部署"
title: "其它服务"
sidebar_position: 10
hide_title: true
---
Expand Down
2 changes: 1 addition & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const config: Config = {
to: '/develop/base/introduce',
},
{
label: '编译与部署',
label: '编译与运行',
to: '/develop/compile/environment',
},
{
Expand Down

0 comments on commit c97a3b3

Please sign in to comment.