yf_yzl пре 2 година
родитељ
комит
3bfcb50055
3 измењених фајлова са 13 додато и 2 уклоњено
  1. 1 2
      Dockerfile
  2. 0 0
      app/utils/simple_cbd.py
  3. 12 0
      uwsgi.ini

+ 1 - 2
Dockerfile

@@ -14,8 +14,7 @@ RUN export PASSWORD_ENCODED=$(printf %s "${PASSWORD}" | jq -s -R -r @uri)
 RUN git clone https://${USERNAME}:${PASSWORD_ENCODED}@114.115.147.140:63000/yf_yzl/QAWeb.git /code
 
 # 安装依赖
-COPY requirements.txt /code/
-RUN pip install -r requirements.txt
+RUN pip install -r /code/requirements.txt
 
 # 配置 uWSGI
 ENV UWSGI_WSGI_FILE=project.wsgi

+ 0 - 0
app/utils/simple_cbd.py


+ 12 - 0
uwsgi.ini

@@ -0,0 +1,12 @@
+[uwsgi]
+http-timeout = 86400
+; 配置 Django WSGI 应用程序
+module = QAWeb.wsgi:application
+; 配置静态文件的路径
+route-host = ^(?!/static).* last:
+route = .* last:
+; 配置 uWSGI 监听的端口
+http-socket = :8000
+; 可选:uWSGI 核心相关配置
+processes = 4
+threads = 2