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`.
21 lines
No EOL
458 B
Bash
21 lines
No EOL
458 B
Bash
#!/usr/bin/bash
|
|
set -e
|
|
|
|
# wait for auxiliary services
|
|
poetry run python manage.py await_services
|
|
|
|
# choose dev vs prod
|
|
if [ "${DEBUG:-0}" = "1" ]; then
|
|
exec poetry run gunicorn evibes.wsgi:application \
|
|
--bind 0.0.0.0:8000 \
|
|
--workers 2 \
|
|
--reload \
|
|
--log-level debug \
|
|
--access-logfile - \
|
|
--error-logfile -
|
|
else
|
|
exec poetry run gunicorn evibes.wsgi:application \
|
|
--bind 0.0.0.0:8000 \
|
|
--workers 12 \
|
|
--timeout 120
|
|
fi |