Skip to content

Commit

Permalink
Pass Django settings to celery (fixes postgresql permissions)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Jun 7, 2023
1 parent eef6abc commit 5c06123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lokale_Installation_eScriptorium.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ python manage.py createsuperuser --settings escriptorium.local_settings
### 15. Celery Worker
Öffnen Sie ein neues Terminal und führen Sie einen einfachen Celery Worker aus:
```
celery -A escriptorium worker -l INFO &
DJANGO_SETTINGS_MODULE=escriptorium.local_settings celery -A escriptorium worker -l INFO &
```

Bestätigen Sie mit Enter. Mittels dieses Befehls läuft Celery direkt im Hintergrund und Sie können fortfahren.
Expand Down Expand Up @@ -211,7 +211,7 @@ source env/bin/activate
cd app
sudo service postgresql start
sudo service redis-server start
celery -A escriptorium worker -l INFO &
DJANGO_SETTINGS_MODULE=escriptorium.local_settings celery -A escriptorium worker -l INFO &
python manage.py runserver --settings escriptorium.local_settings
```
Browser: [http://localhost:8000/](http://localhost:8000/)
Expand Down

0 comments on commit 5c06123

Please sign in to comment.