4 Star 59 Fork 19

花菜/AnotherFasterRunner

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
start-dev.sh 677 Bytes
一键复制 编辑 原始数据 按行查看 历史
rikasai233 提交于 2024-11-24 22:11 . feat: remove worker duplicate log
#!/bin/sh
if [ $1 = "app" ]; then
echo "start app"
# /usr/local/bin/python -m gunicorn FasterRunner.wsgi_docker -b 0.0.0.0 -w4
# export IS_PERF=1; python -m gunicorn FasterRunner.wsgi_dev -b 0.0.0.0 -w16 -k gevent
export IS_PERF=1; gunicorn FasterRunner.wsgi_dev -b 0.0.0.0:8000 -w 2 -k gevent
fi
if [ $1 = "worker" ]; then
echo "start celery"
export DJANGO_SETTINGS_MODULE=FasterRunner.settings.dev; python -m celery -A FasterRunner.mycelery worker -l error --concurrency=2
fi
if [ $1 = "beat" ]; then
echo "start celery beat"
export DJANGO_SETTINGS_MODULE=FasterRunner.settings.dev; python -m celery -A FasterRunner.mycelery beat -l info
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lihuacai/AnotherFasterRunner.git
git@gitee.com:lihuacai/AnotherFasterRunner.git
lihuacai
AnotherFasterRunner
AnotherFasterRunner
master

搜索帮助