mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-27 20:24:54 +02:00
* Add django debug toolbar * Remove duplicate debug toolbar URLs * Remove orphaned import in startScan * Add DEBUG config commented in entrypoint * Install debug toolbar into celery beat * Create dev docker compose & entrypoints * Move django toolbar install to dev entrypoints * Install debug_toolbar only when debug env var is set * Add dev command to MakeFile * Use DEBUG from settings.py exclusively * Add remote debug configuration in dev env * Add VSCode debug configuration * Celery log level to 1 when debug is on * Remove hard coded celery debug port * Add gunicorn in the production setup * Add export var for celery log level * Restrict debug port to 127.0.0.1 * Set remote debug to false by default * Update doc on debug step for submitting issue * Create dev docker compose & entrypoints * Add django debug toolbar * Remove duplicate debug toolbar URLs * Remove orphaned import in startScan * Add DEBUG config commented in entrypoint * Install debug toolbar into celery beat * Move django toolbar install to dev entrypoints * Install debug_toolbar only when debug env var is set * Add dev command to MakeFile * Use DEBUG from settings.py exclusively * Add remote debug configuration in dev env * Add VSCode debug configuration * Celery log level to 1 when debug is on * Remove hard coded celery debug port * Add gunicorn in the production setup * Add export var for celery log level * Restrict debug port to 127.0.0.1 * Set remote debug to false by default * Update doc on debug step for submitting issue --------- Co-authored-by: Raynald <raynald@easi-services.fr> Co-authored-by: Psyray <psyray@users.noreply.github.com>
22 lines
534 B
Bash
Executable File
22 lines
534 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$DEBUG" == "1" ]; then
|
|
# Django debug toolbar
|
|
pip install django-debug-toolbar
|
|
export CELERY_LOGLEVEL='debug'
|
|
fi
|
|
|
|
# Check if remote debugging is enabled and set concurrency to 1 for easier debug
|
|
if [ "$REMOTE_DEBUG" == "1" ]; then
|
|
# Live debug
|
|
pip install debugpy
|
|
|
|
# To debug opened port with netstat
|
|
apt install net-tools -y
|
|
|
|
# Set celery concurrency to 1 because thread processes is hard to debug
|
|
export MIN_CONCURRENCY=1
|
|
export MAX_CONCURRENCY=1
|
|
fi
|
|
|
|
./celery-entrypoint.sh |