尝试手动启动

This commit is contained in:
RainSun 2020-12-26 16:29:56 +08:00
parent d0017f79a2
commit fadd85334b
2 changed files with 2 additions and 2 deletions

View File

@ -4,4 +4,4 @@ COPY . /app
WORKDIR /app
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
CMD ["gunicorn", "api:app", "-c", "./gunicorn.conf.py"]
# CMD ["gunicorn", "api:app", "-c", "./gunicorn.conf.py"]

View File

@ -7,7 +7,7 @@ setting = 'production'
# 获取数据集
def col(arg):
conn = MongoClient('mongodb://wxapi:uJ5hB9mJ0gR2@mongo:27017/wxapi')
conn = MongoClient('mongodb://wxapi:uJ5hB9mJ0gR2@39.96.28.83:27017/wxapi')
if setting == 'development':
arg += '_test'
if arg == 'keyword':