Commit d6765296 authored by zhongshangwu's avatar zhongshangwu

增加C_FORCE_ROOT环境变量(Celery Root 用户启动)

parent 3fe60ed6
......@@ -9,5 +9,6 @@ RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
COPY . .
ENV PROJECT_ENV=prod
ENV C_FORCE_ROOT=true
COPY ./deploy/prod/settings_local.py ./sun/
CMD bash -c 'source ~/.bashrc && gunicorn sun.wsgi:application -w 4 -b 0.0.0.0:80 -k gevent'
......@@ -9,5 +9,6 @@ RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
COPY . .
ENV PROJECT_ENV=stage
ENV C_FORCE_ROOT=true
COPY ./deploy/stage/settings_local.py ./sun/
CMD bash -c 'source ~/.bashrc && gunicorn sun.wsgi:application -w 4 -b 0.0.0.0:80 -k gevent'
......@@ -9,5 +9,6 @@ RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
COPY . .
ENV PROJECT_ENV=test
ENV C_FORCE_ROOT=true
COPY ./deploy/test/settings_local.py ./sun/
CMD bash -c 'source ~/.bashrc && gunicorn sun.wsgi:application -w 4 -b 0.0.0.0:80 -k gevent'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment