摘要:        
作用 需要在应用程序启动之前或者关闭时进行,例如数据库迁移,定时任务····· 实际代码 main.py import uvicorn from app import create_app app = create_app() if __name__ == '__main__': uvicorn.r    阅读全文
posted @ 2023-03-08 17:31
蒲公英PGY
阅读(332)
评论(0)
推荐(0)
        
            
        
        
摘要:        
cat python_oss.py #!/usr/bin/python # -*- coding: utf-8 -*- # @time : 2023/2/23 14:29 # @author : pugongying # @description : from __future__ import p    阅读全文
posted @ 2023-03-08 17:19
蒲公英PGY
阅读(625)
评论(0)
推荐(0)
        
            
        
        
摘要:        
cat docker-compose.yaml version: '3.3' services: es8: image: elasticsearch:8.4.2 container_name: es8 ports: - 9200:9200 - 9300:9300 environment: xpack    阅读全文
posted @ 2023-03-08 17:10
蒲公英PGY
阅读(1722)
评论(3)
推荐(1)
        
                    
                
浙公网安备 33010602011771号