Skip to content

Commit

Permalink
Merge pull request #34 from CloudWise-OpenSource/hotfix-initDatabase
Browse files Browse the repository at this point in the history
Hotfix init database
  • Loading branch information
jincheny authored Apr 27, 2022
2 parents 86f19d7 + 5fd9ce9 commit 47c5f85
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,31 @@
| nginx | 1.20.1 |

### 开放端口
|服务台 | 端口 |
| ----- | ------ |
| 平台界面 | 8089 |
| Code-Server | 8081 |
| 开发界面 | 7001 |

| 服务台 | 端口 |
| ----------------------------------- | ---- |
| FlyfishWeb 端口(nginx 静态资源代理) | 8089 |
| FlyfishCodeServer(在线编辑器)端口 | 8081 |
| FlyfishServer(主后端服务)端口 | 7001 |

### 部署流程

> 推荐使用 doc 目录内 flyfish 部署文档,后续有关部署流程、学习资料、FAQ 等统一放置 doc 目录中管理。
- [01-基础环境准备篇](./doc/01-基础环境准备篇.md)
- [02-FlyFish平台部署篇](./doc/02-FlyFish平台部署篇.md)
- [03-code_server部署篇](./doc/03-code_server部署篇.md)
- [02-FlyFish 平台部署篇](./doc/02-FlyFish平台部署篇.md)
- [03-code_server 部署篇](./doc/03-code_server部署篇.md)

> 或执行一键脚本:
> 或执行一键脚本:
```bash
# CentOS 7.5/7.6 x86-64
# 须使用root账户
mkdir -p /data/app/
cd /data/app/

git clone -b main https://github.com/CloudWise-OpenSource/FlyFish.git FlyFish
or
or
git clone -b main https://gitee.com/CloudWise/fly-fish.git FlyFish

cd /data/app/FlyFish
Expand Down
13 changes: 10 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ deploy_flyfish_web() {

# 提示缺少 conf.d
cd /
mkdir /etc/nginx/conf.d
tempPath="/etc/nginx/conf.d"
if [ ! -d "$tempPath" ]; then
mkdir $tempPath
fi
cd /data/app/FlyFish/lcapWeb

cp FlyFish-2.1.0.conf /etc/nginx/conf.d/FlyFish-2.1.0.conf
Expand Down Expand Up @@ -182,6 +185,9 @@ stop_flyfish() {
echo "停止运行FlyFish前端:"
systemctl stop nginx

cd ~
source nvm/nvm.sh

echo "停止运行FlyFish后端:"
cd /data/app/FlyFish/lcapServer/
npm run stop
Expand All @@ -193,11 +199,12 @@ stop_flyfish() {
}

remove_system() {
echo "开始移除基础环境:nginx mongodb pm2 node.js nvm git"
echo "开始移除基础环境:nginx mongodb pm2 node.js nvm"

echo "start uninstall nginx"
# systemctl stop nginx
chkconfig nginx off
# chkconfig nginx off
systemctl disable nginx.service
yum remove nginx -y
rm -rf /usr/sbin/nginx
rm -rf /etc/nginx
Expand Down

0 comments on commit 47c5f85

Please sign in to comment.