diff --git a/README.md b/README.md index 045068b30..0f4dc771e 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,13 @@ PHP[53-72]支持phpMyAdmin[4.4.15] PHP[72-82]支持phpMyAdmin[5.2.0] ``` +# 郑重声明 + +不卖、不会监控(统计使用除外)、更不会注入病毒,大家使用方便(望大家不吝捐赠)。 + +- https://www.youtube.com/watch?v=2taa5K-Jmmw + + # 特别赞助 - [找资源 - 阿里云盘资源搜索引擎](https://zhaoziyuan.pw/) diff --git a/cmd.md b/cmd.md index a5ed58dc1..4eb63a543 100644 --- a/cmd.md +++ b/cmd.md @@ -9,6 +9,7 @@ ---------------------------------------- mw debug | 开发测试 +mw venv | 进入虚拟环境 mw mirror | 切换镜像 mw install_app | 快捷安装常用软件 mw update | 更新到正式 diff --git a/requirements.txt b/requirements.txt index be81dff62..03622f70d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,6 +5,7 @@ gunicorn==20.1.0 requests>=2.27.1 urllib3>=1.21.1 flask>=2.0.3 +flask<3.0.0 flask-session==0.3.2 flask-helper==0.19 flask-bcrypt==1.0.1 diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index 482c88030..4ba2f11d7 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -389,6 +389,10 @@ mw_connect_mysql(){ } +mw_venv(){ + cd /www/server/mdserver-web && source bin/activate +} + case "$1" in 'start') mw_start;; 'stop') mw_stop;; @@ -414,6 +418,7 @@ case "$1" in 'debug') mw_debug;; 'mirror') mw_mirror;; 'db') mw_connect_mysql;; + 'venv') mw_venv;; 'default') cd $mw_path port=7200