修复BUG(框架类): 去掉https;优化docker启动取消再次安装uwsgi

pull/23/head
李强 2021-04-27 09:27:11 +08:00
parent b10b467d8c
commit 19383f2668
4 changed files with 3 additions and 3 deletions

View File

@ -12,5 +12,6 @@ WORKDIR /dvadmin-backend
COPY ./dvadmin-backend/requirements.txt / COPY ./dvadmin-backend/requirements.txt /
COPY ./dvadmin-backend/conf/env.example.py /dvadmin-backend/conf/env.py COPY ./dvadmin-backend/conf/env.example.py /dvadmin-backend/conf/env.py
RUN python3 -m pip install -i https://mirrors.aliyun.com/pypi/simple/ -r /requirements.txt RUN python3 -m pip install -i https://mirrors.aliyun.com/pypi/simple/ -r /requirements.txt
RUN python3 -m pip install -i https://mirrors.aliyun.com/pypi/simple/ uwsgi==2.0.19.1
CMD ["/dvadmin-backend/docker_start.sh"] CMD ["/dvadmin-backend/docker_start.sh"]
# ENTRYPOINT [ "uwsgi --ini /backend/azcrm/uwsgi.ini" ] # ENTRYPOINT [ "uwsgi --ini /backend/azcrm/uwsgi.ini" ]

View File

@ -2,7 +2,6 @@
cd /dvadmin-backend cd /dvadmin-backend
cp -rf ./conf/env.example.py ./conf/env.py cp -rf ./conf/env.example.py ./conf/env.py
python3 -m pip install -i https://mirrors.aliyun.com/pypi/simple/ uwsgi==2.0.19.1
python ./manage.py makemigrations python ./manage.py makemigrations
python ./manage.py migrate python ./manage.py migrate
#python ./manage.py initialization #python ./manage.py initialization

View File

@ -3,7 +3,7 @@ ENV = 'development'
# 若依管理系统/开发环境 # 若依管理系统/开发环境
# VUE_APP_BASE_API = 'https://api.django-vue-admin.com' # VUE_APP_BASE_API = 'https://api.django-vue-admin.com'
VUE_APP_BASE_API = 'http://127.0.0.1:8888' VUE_APP_BASE_API = 'http://127.0.0.1:8000'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true

View File

@ -2,7 +2,7 @@
ENV = 'production' ENV = 'production'
# 若依管理系统/生产环境 # 若依管理系统/生产环境
VUE_APP_BASE_API = 'https://api.django-vue-admin.com' VUE_APP_BASE_API = 'http://api.django-vue-admin.com'
# 前端端口 # 前端端口
PORT=8080 PORT=8080