启动文件
This commit is contained in:
		
							
								
								
									
										7
									
								
								start.sh
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								start.sh
									
									
									
									
									
								
							@@ -1,17 +1,16 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 创建虚拟环境 Python 3.10.12
 | 
					# 创建虚拟环境 Python 3.10.12
 | 
				
			||||||
python3.10 -m venv venv
 | 
					# python3.10 -m venv venv
 | 
				
			||||||
source venv/bin/activate
 | 
					source venv/bin/activate
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 安装依赖(使用清华镜像)
 | 
					# 安装依赖(使用清华镜像)
 | 
				
			||||||
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
 | 
					# pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 启动服务
 | 
					# 启动服务
 | 
				
			||||||
pm2 start python3 --name reverse-5002 -- main.py 5002
 | 
					pm2 start uvicorn --name reverse-5002 -- main:app --host 0.0.0.0 --port 5002
 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# pip freeze > requirements.txt
 | 
					# pip freeze > requirements.txt
 | 
				
			||||||
#python3 -m pip install -U pyOpenSSL cryptography
 | 
					#python3 -m pip install -U pyOpenSSL cryptography
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user