|
|
|
@ -78,14 +78,21 @@ chmod 755 /www/server/mdserver-web/data |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -f /www/server/mdserver-web/bin/activate ];then |
|
|
|
|
pip install --upgrade pip |
|
|
|
|
pip install --upgrade setuptools |
|
|
|
|
cd /www/server/mdserver-web && source /www/server/mdserver-web/bin/activate && pip3 install -r /www/server/mdserver-web/requirements.txt |
|
|
|
|
else |
|
|
|
|
cd /www/server/mdserver-web && pip3 install -r /www/server/mdserver-web/requirements.txt |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
pip3 install gevent flask gunicorn flask_caching flask_session |
|
|
|
|
pip3 install flask_socketio gevent-websocket psutil pymongo |
|
|
|
|
|
|
|
|
|
pip3 install gunicorn==20.1.0 |
|
|
|
|
pip3 install gevent==21.1.2 |
|
|
|
|
pip3 install gevent-websocket==0.10.1 |
|
|
|
|
pip3 install requests==2.20.0 |
|
|
|
|
pip3 install flask-caching>=1.10.1 |
|
|
|
|
pip3 install flask-socketio==5.2.0 |
|
|
|
|
pip3 install pymongo |
|
|
|
|
pip3 install psutil |
|
|
|
|
|
|
|
|
|
cd /www/server/mdserver-web && ./cli.sh start |
|
|
|
|
sleep 5 |
|
|
|
|