-
Notifications
You must be signed in to change notification settings - Fork 148
Expand file tree
/
Copy pathstart_real.sh
More file actions
12 lines (6 loc) · 819 Bytes
/
start_real.sh
File metadata and controls
12 lines (6 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
cd /home/workspace/devops/ && /home/python372/bin/pip3 install -i https://mirrors.aliyun.com/pypi/simple -r requirements.txt
cd /home/workspace/devops/ && export PYTHONOPTIMIZE=1 && /home/python372/bin/celery -A devops worker -l info -c 5 --max-tasks-per-child 200 --prefetch-multiplier 10 --pidfile logs/celery_worker.pid
cd /home/workspace/devops/ && export PYTHONOPTIMIZE=1 && /home/python372/bin/celery -A devops beat -l info --pidfile logs/celery_beat.pid
cd /home/workspace/devops/ && export PYTHONOPTIMIZE=1 && /home/python372/bin/python3 manage.py sshd
cd /home/workspace/devops/ && export PYTHONOPTIMIZE=1 && /home/python372/bin/daphne -b 0.0.0.0 -p 8001 devops.asgi:application
cd /home/workspace/devops/ && export PYTHONOPTIMIZE=1 && /home/python372/bin/gunicorn -c gunicorn.py devops.wsgi:application