mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-27 10:30:32 +00:00
Renames fr_celery dir to celerywyrm
This commit is contained in:
parent
f77c156733
commit
d1f1260640
8 changed files with 23 additions and 23 deletions
|
@ -6,5 +6,5 @@ RUN mkdir /app/images
|
|||
WORKDIR /app
|
||||
COPY requirements.txt /app/
|
||||
RUN pip install -r requirements.txt
|
||||
COPY ./fedireads /app
|
||||
COPY ./fr_celery /app
|
||||
COPY ./bookwyrm /app
|
||||
COPY ./celerywyrm /app
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
"""
|
||||
ASGI config for fr_celery project.
|
||||
ASGI config for celerywyrm project.
|
||||
|
||||
It exposes the ASGI callable as a module-level variable named ``application``.
|
||||
|
||||
|
@ -11,6 +11,6 @@ import os
|
|||
|
||||
from django.core.asgi import get_asgi_application
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'fr_celery.settings')
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'celerywyrm.settings')
|
||||
|
||||
application = get_asgi_application()
|
|
@ -6,9 +6,9 @@ import os
|
|||
from celery import Celery
|
||||
|
||||
# set the default Django settings module for the 'celery' program.
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'fr_celery.settings')
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'celerywyrm.settings')
|
||||
|
||||
app = Celery('fr_celery')
|
||||
app = Celery('celerywyrm')
|
||||
|
||||
# Using a string here means the worker doesn't have to serialize
|
||||
# the configuration object to child processes.
|
||||
|
@ -18,8 +18,8 @@ app.config_from_object('django.conf:settings', namespace='CELERY')
|
|||
|
||||
# Load task modules from all registered Django app configs.
|
||||
app.autodiscover_tasks()
|
||||
app.autodiscover_tasks(['fedireads'], related_name='incoming')
|
||||
app.autodiscover_tasks(['fedireads'], related_name='broadcast')
|
||||
app.autodiscover_tasks(['fedireads'], related_name='books_manager')
|
||||
app.autodiscover_tasks(['fedireads'], related_name='goodreads_import')
|
||||
app.autodiscover_tasks(['bookwyrm'], related_name='incoming')
|
||||
app.autodiscover_tasks(['bookwyrm'], related_name='broadcast')
|
||||
app.autodiscover_tasks(['bookwyrm'], related_name='books_manager')
|
||||
app.autodiscover_tasks(['bookwyrm'], related_name='goodreads_import')
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
"""
|
||||
Django settings for fr_celery project.
|
||||
Django settings for celerywyrm project.
|
||||
|
||||
Generated by 'django-admin startproject' using Django 3.0.3.
|
||||
|
||||
|
@ -46,8 +46,8 @@ INSTALLED_APPS = [
|
|||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
'fr_celery',
|
||||
'fedireads',
|
||||
'celerywyrm',
|
||||
'bookwyrm',
|
||||
'celery',
|
||||
]
|
||||
|
||||
|
@ -61,7 +61,7 @@ MIDDLEWARE = [
|
|||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||
]
|
||||
|
||||
ROOT_URLCONF = 'fr_celery.urls'
|
||||
ROOT_URLCONF = 'celerywyrm.urls'
|
||||
|
||||
TEMPLATES = [
|
||||
{
|
||||
|
@ -79,7 +79,7 @@ TEMPLATES = [
|
|||
},
|
||||
]
|
||||
|
||||
WSGI_APPLICATION = 'fr_celery.wsgi.application'
|
||||
WSGI_APPLICATION = 'celerywyrm.wsgi.application'
|
||||
|
||||
|
||||
# Database
|
||||
|
@ -90,15 +90,15 @@ FEDIREADS_DATABASE_BACKEND = env('FEDIREADS_DATABASE_BACKEND', 'postgres')
|
|||
FEDIREADS_DBS = {
|
||||
'postgres': {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'NAME': env('POSTGRES_DB', 'fedireads'),
|
||||
'USER': env('POSTGRES_USER', 'fedireads'),
|
||||
'PASSWORD': env('POSTGRES_PASSWORD', 'fedireads'),
|
||||
'NAME': env('POSTGRES_DB', 'bookwyrm'),
|
||||
'USER': env('POSTGRES_USER', 'bookwyrm'),
|
||||
'PASSWORD': env('POSTGRES_PASSWORD', 'bookwyrm'),
|
||||
'HOST': env('POSTGRES_HOST', ''),
|
||||
'PORT': 5432
|
||||
},
|
||||
'sqlite': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': os.path.join(BASE_DIR, 'fedireads.db')
|
||||
'NAME': os.path.join(BASE_DIR, 'bookwyrm.db')
|
||||
}
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
"""fr_celery URL Configuration
|
||||
"""celerywyrm URL Configuration
|
||||
|
||||
The `urlpatterns` list routes URLs to views. For more information please see:
|
||||
https://docs.djangoproject.com/en/3.0/topics/http/urls/
|
|
@ -1,5 +1,5 @@
|
|||
"""
|
||||
WSGI config for fr_celery project.
|
||||
WSGI config for celerywyrm project.
|
||||
|
||||
It exposes the WSGI callable as a module-level variable named ``application``.
|
||||
|
||||
|
@ -11,6 +11,6 @@ import os
|
|||
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'fr_celery.settings')
|
||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'celerywyrm.settings')
|
||||
|
||||
application = get_wsgi_application()
|
|
@ -46,7 +46,7 @@ services:
|
|||
build: .
|
||||
networks:
|
||||
- main
|
||||
command: celery -A fr_celery worker -l info
|
||||
command: celery -A celerywyrm worker -l info
|
||||
volumes:
|
||||
- .:/app
|
||||
depends_on:
|
||||
|
|
Loading…
Reference in a new issue