宝塔面板部署Flask

宝塔面板部署Flask

参考:https://blog.csdn.net/weixin_45904682/article/details/124218744
核心要点:

  1. 导入项目依赖
    pip3 freeze >requirements.txt
    参考:https://www.cnblogs.com/xiaofeng91/p/16332087.html
    参考:https://blog.csdn.net/m0_59100947/article/details/121262357

  2. 常见问题
    (1)报错502 Bad Gateway,返回python项目管理器查看日志,查看报错原因。

  3. 开启调试模式
    参考:http://t.zoukankan.com/ivy-blogs-p-11470302.html

  4. 开启虚拟环境
    参考:https://blog.csdn.net/bluecat333/article/details/123718101

  5. 部署conda环境
    参考:https://blog.csdn.net/weixin_41862755/article/details/120669165

  6. 下载安装包
    参考:https://repo.anaconda.com/archive/index.html

宝塔面板配置Git同步-Git远程仓库部署工具

文档:https://www.bt.cn/bbs/thread-42294-1-1.html

查看linux架构

参考:https://www.cnblogs.com/geek233/p/15775277.html

Wind API手册

参考:https://www.windquant.com/qntcloud/apiRefHelp/id-91573a98-70d5-4462-8c6f-546ab45c8652

json格式转换

  1. python对象转json
    参考:https://www.runoob.com/python/python-json.html
  2. Pandas转json
    参考:https://blog.csdn.net/qq_43168299/article/details/115761834
  3. Pandas转字典
    参考:https://www.qb5200.com/article/355827.html

发送请求

  1. requests库的使用
    参考:https://blog.csdn.net/erfan_lang/article/details/120559899

scroll-view 下拉加载更多

参考:https://blog.csdn.net/ActiveQi/article/details/124752307
参考:https://www.yisu.com/zixun/195296.html

页面跳转传参数

参考:https://www.jianshu.com/p/176cfaeb2342

遇到的问题

  1. 安装失败
    image
  2. 请求过程出现错误
    image
  3. pip 更新
WARNING: You are using pip version 20.3.3; however, version 22.3.1 is available.
You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.
  1. 虚拟环境
    参考:https://www.cnblogs.com/moneymaster/p/15843522.html
    参考:https://developer.aliyun.com/article/1026788
    参考:https://blog.csdn.net/weixin_47723549/article/details/127632224
    参考:https://blog.csdn.net/weixin_47723549/article/details/127629129?spm=1001.2014.3001.5502

posted on 2022-07-21 09:01  朝朝暮Mu  阅读(277)  评论(0)    收藏  举报