Commit 6dbfbc07 authored by wanli's avatar wanli

update

parent 1b9831d3
#!/usr/bin/env bash
#!/usr/bin/env bash
# 获取当前路径
Cur_Dir=$(pwd)
# 关闭evm_store
supervisorctl stop evm_store
# 切换到release分支
git checkout release
# 拉取最新代码
git pull
rm -rf ${Cur_Dir}/release
mkdir -p ${Cur_Dir}/release
# 启动evm_store
supervisorctl start evm_store
cxfreeze ${Cur_Dir}/start.py --install-dir=${Cur_Dir}/release
# 启动一个定时任务
# cd $Cur_Dir
# source venv/bin/activate
# 0 */1 * * * "${Cur_Dir}/venv/bin/python deploy.py"
cp -fi ${Cur_Dir}/config.ini ${Cur_Dir}/release/
cp -fi ${Cur_Dir}/backupData.json ${Cur_Dir}/release/
cp -fi ${Cur_Dir}/app-store.db ${Cur_Dir}/release/
\ No newline at end of file
appdirs==1.4.4
certifi==2020.12.5
chardet==4.0.0
click==7.1.2
cx-Freeze==6.6
cx-Logging==3.0
Flask==1.1.2
Flask-Cors==3.0.10
Flask-Login==0.5.0
fs==2.4.12
idna==2.10
importlib-metadata==4.0.1
itsdangerous==1.1.0
Jinja2==2.11.3
MarkupSafe==1.1.1
......@@ -11,6 +17,9 @@ marshmallow==3.10.0
pony==0.7.14
PyJWT==2.0.1
pytz==2021.1
requests==2.25.1
six==1.15.0
tornado==6.1
urllib3==1.26.4
Werkzeug==1.0.1
zipp==3.4.1
#!/usr/bin/env bash
# 获取当前路径
Cur_Dir=$(pwd)
# 关闭evm_store
supervisorctl stop evm_store
# 切换到release分支
git checkout release
# 拉取最新代码
git pull
# 启动evm_store
supervisorctl start evm_store
# 启动一个定时任务
# cd $Cur_Dir
# source venv/bin/activate
# 0 */1 * * * "${Cur_Dir}/venv/bin/python deploy.py"
# ps -def | grep "run.sh"
# ps -aux | grep start.py
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment