Skip to content

Commit

Permalink
Update fix flyfish.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jincheny committed Jun 8, 2022
1 parent 98ec520 commit 6a2a506
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions flyfish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ deploy_flyfish_server() {
npm install

cd /data/app/FlyFish/lcapServer/
npm install --unsafe-perm=true --allow-root
npm install --production --unsafe-perm=true --allow-root

echo "开始初始化数据库:"
npm run init-development-database
Expand Down Expand Up @@ -272,13 +272,18 @@ get_source_code() {

reinstall_flyfish() {

# Update FlyFish-2.1.2
systemctl start nginx
rm -rf /etc/nginx/conf.d/FlyFish-2.1.0.conf
deploy_flyfish_web

echo "开始部署FLyFish后端:"
cd /data/app/FlyFish/lcapServer/
npm install
npm install --production --unsafe-perm=true --allow-root
npm run development

sed -i "s/IP/$local_ip/g" /data/app/FlyFish/lcapWww/web/screen/config/env.js

echo "部署后端结束。"

deploy_flyfish_code_server
Expand Down
2 changes: 1 addition & 1 deletion lcapWww/web/screen/config/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'use strict';

window.DATAVI_ENV = (function() {
const apiDomain = 'IP:7001';
const apiDomain = 'http://IP:7001';

return {
debug: true,
Expand Down

0 comments on commit 6a2a506

Please sign in to comment.