Fixes: 1) Fix shebangs in Docker entry-point scripts to use `/usr/bin/bash`. Extra: 1) Refactor slug fields in `core` migrations for `Brand`, `Category`, and `Product`; 2) Cleanup and simplify admin code in `core/admin.py`.
8 lines
No EOL
361 B
Bash
8 lines
No EOL
361 B
Bash
#!/usr/bin/bash
|
|
set -e
|
|
|
|
# wait for auxiliary services
|
|
poetry run python manage.py await_services
|
|
|
|
# run workers and metrics exporter
|
|
poetry run celery -A evibes worker --loglevel=info -E --concurrency=4 --autoscale=4,2 --max-tasks-per-child=100 --max-memory-per-child=512000 --soft-time-limit=10800 --time-limit=21600 & /usr/local/bin/celery-prometheus-exporter |