版本更新

dependabot/npm_and_yarn/fir_admin/axios-0.21.2
MMXX 3 years ago
parent 378912944f
commit 9b9be3fcf9
  1. 102
      README.md
  2. 2
      fir_client/vue.config.js

@ -1,82 +1,33 @@
##### 从git上面下载源码 ##### 从git上面下载源码
``` ```shell
cd /data/ cd /data/
git clone https://github.com/nineaiyu/FlyApps git clone https://github.com/nineaiyu/FlyApps
``` ```
#### 超级签名依赖部署
##### fastlane [相关文档](https://github.com/fastlane/fastlane/blob/master/spaceship/docs/DeveloperPortal.md)
```
# fastlane
#1 gem ruby安装
yum install gem -y
yum install ruby-devel -y
yum install gcc gcc-c++ -y
#gem修改为国内镜像
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
gem sources -l
#https://gems.ruby-china.com
#确保只有 gems.ruby-china.com
#2 更新rubby
gpg2 --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
#如果脚本执行失败,可以这样
# echo 199.232.68.133 raw.githubusercontent.com >> /etc/hosts
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm list known
rvm install 2.7
#3 安装fastlane
gem install fastlane
gem install pry
# space 好像有点问题,需要把这个注释掉
vim /usr/local/rvm/gems/ruby-2.7.0/gems/fastlane-2.146.1/spaceship/lib/spaceship/base.rb +298
#v.gsub!("\n", "\n\t") # to align nested elements #注释掉,要不然会报错
```
##### isign
```
# python2.7
yum update python -y
pip install -U setuptools pip
wget https://github.com/nineaiyu/isign/archive/v1.8.0.tar.gz
tar xvf v1.8.0.tar.gz
cd isign-1.8.0/
python setup.py build
python setup.py install
```
### FlyApp 服务器搭建 [python3 环境] ### FlyApp 服务器搭建 [python3 环境]
##### 搭建python env 环境 ##### 搭建python env 环境
``` ```shell
yum install python36 python36-devel redis mariadb-server mariadb-devel -y yum install python36 python36-devel redis mariadb-server mariadb-devel -y
python3 -m venv py3 python3 -m venv py3
source py3/bin/activate source py3/bin/activate
``` ```
###### 安装pip包 ###### 安装pip包
``` ```shell
cd FlyApps/fir_ser/ cd fir_ser/
pip install -U setuptools pip
pip install -r requirements.txt pip install -r requirements.txt
``` ```
###### 配置数据库 ###### 配置数据库
``` ```
settings.py 配置redis 和 mysql 数据库 在 config.py 配置redis 和 mysql 数据库
``` ```
###### 迁移数据库 ###### 迁移数据库
``` ```shell
#如果是mysql,需要做一下配置,如果是sqlite,需要升级sqlite #如果是mysql,需要做一下配置,如果是sqlite,需要升级sqlite
#记得根据配置创建数据库 #记得根据配置创建数据库
#create database flyapp default character set utf8 COLLATE utf8_general_ci; #create database flyapp default character set utf8 COLLATE utf8_general_ci;
@ -86,36 +37,41 @@ python manage.py makemigrations
python manage.py migrate python manage.py migrate
``` ```
### FlyApp zsign ipa重签名工具安装
```shell
yum install openssl-devel -y
yum install gcc-c++ gcc -y
wget https://github.com/nineaiyu/zsign/archive/refs/tags/v1.1.2.tar.gz
tar xvf v1.1.2.tar.gz
cd zsign-1.1.2/
g++ *.cpp common/*.cpp -lcrypto -O3 -std=c++11 -o zsign
cp zsign /usr/bin/
```
### FlyApp web端搭建 ### FlyApp web端搭建
###### npm编译环境 ###### npm编译环境
``` ```shell
yum install npm yum install npm
npm install -g n npm install -g n
n latest n 12.13 # 安装12版本的node ,最新版本会有问题
npm install -g yarn npm install -g yarn
``` ```
###### 编译web端 ###### 编译web端和下载页
``` ```shell
cd FlyApps/fir_client/ cd FlyApps/fir_client/
vim src/restful/index.js #修改api接口地址 vim vue.config.js #修改api接口地址
# pro_base_env 正式环境信息
# dev_base_env 开发环境信息
yarn install yarn install
yarn build yarn build index # web打包
``` yarn build short # 下载也打包
###### 编译下载页面
``` ```
cd FlyApps/fir_download/
vim src/restful/download.js #修改api接口地址
yarn install
yarn build
```
###### web目录操作 ###### web目录操作
``` ```shell
# web目录: /www/wwwroot/fly.dvcloud.xin/ # web目录: /www/wwwroot/fly.dvcloud.xin/
cd /www/wwwroot/fly.dvcloud.xin/ cd /www/wwwroot/fly.dvcloud.xin/
@ -124,7 +80,7 @@ cp -a /data/FlyApps/fir_download/dist/* .
``` ```
##### 更新sqllite ##### 更新sqllite
``` ```shell
tar xvf sqlite-autoconf-3310100.tar.gz tar xvf sqlite-autoconf-3310100.tar.gz
cd sqlite-autoconf-3310100 cd sqlite-autoconf-3310100

@ -82,7 +82,7 @@ if (page) {
} }
} }
const version='2.0.0'; const version='2.2.2';
const pro_base_env = { const pro_base_env = {
baseUrl: 'https://flyapps.cn', baseUrl: 'https://flyapps.cn',

Loading…
Cancel
Save