Read only fetcher urls app
This commit is contained in:
@@ -4,12 +4,12 @@ if [ "${INITIALIZE_DB}" = false ]; then
|
||||
echo "Initialization not required"
|
||||
else
|
||||
echo "Initializating database"
|
||||
python init_db.py --initialize_tables --initialize_data
|
||||
# python init_db.py --initialize_tables --initialize_data
|
||||
python manage.py makemigrations fetcher; python manage.py migrate --fake-initial
|
||||
python manage.py migrate django_celery_beat
|
||||
# python manage.py migrate django_celery_beat
|
||||
python manage.py createsuperuser --noinput
|
||||
python manage.py collectstatic --no-input
|
||||
python manage.py loaddata scheduled_tasks.json
|
||||
# python manage.py loaddata scheduled_tasks.json
|
||||
#
|
||||
# python manage.py inspectdb # Debugging model
|
||||
fi
|
||||
|
||||
@@ -13,42 +13,3 @@ redirect_stderr=true
|
||||
; Rotate when file reaches max size
|
||||
stdout_logfile_maxbytes=20MB
|
||||
stdout_logfile_backups=1
|
||||
|
||||
[program:beat]
|
||||
command=celery -A core beat -l info --logfile=/opt/logs/beat.log
|
||||
directory=/opt/app
|
||||
autostart=true
|
||||
autorestart=true
|
||||
; Unified log file
|
||||
stdout_logfile=/opt/logs/beat.log
|
||||
stderr_logfile=/opt/logs/beat.log
|
||||
redirect_stderr=true
|
||||
; Rotate when file reaches max size
|
||||
stdout_logfile_maxbytes=20MB
|
||||
stdout_logfile_backups=1
|
||||
|
||||
[program:worker_default]
|
||||
command=celery -A core worker -l info --logfile=/opt/logs/worker_default.log --concurrency=1 -Q default -n default
|
||||
directory=/opt/app
|
||||
autostart=true
|
||||
autorestart=true
|
||||
; Unified log file
|
||||
stdout_logfile=/opt/logs/worker_default.log
|
||||
stderr_logfile=/opt/logs/worker_default.log
|
||||
redirect_stderr=true
|
||||
; Rotate when file reaches max size
|
||||
stdout_logfile_maxbytes=20MB
|
||||
stdout_logfile_backups=1
|
||||
|
||||
[program:worker_low]
|
||||
command=celery -A core worker -l info --logfile=/opt/logs/worker_low.log --concurrency=1 -Q low -n low
|
||||
directory=/opt/app
|
||||
autostart=true
|
||||
autorestart=true
|
||||
; Unified log file
|
||||
stdout_logfile=/opt/logs/worker_low.log
|
||||
stderr_logfile=/opt/logs/worker_low.log
|
||||
redirect_stderr=true
|
||||
; Rotate when file reaches max size
|
||||
stdout_logfile_maxbytes=20MB
|
||||
stdout_logfile_backups=1
|
||||
|
||||
Reference in New Issue
Block a user