Browse Source

Daemonization cookbook: Need to export DJANGO_SETTINGS_MODULE in /etc/default/celeryd.

Thanks to matclayton
Ask Solem 14 năm trước cách đây
mục cha
commit
fbe14ea801
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      docs/cookbook/daemonizing.rst

+ 3 - 3
docs/cookbook/daemonizing.rst

@@ -53,12 +53,12 @@ This is an example configuration for those using ``django-celery``::
     # Where the Django project is.
     CELERYD_CHDIR="/opt/Project/"
 
-    # Name of the projects settings module.
-    DJANGO_SETTINGS_MODULE="settings"
-
     # Path to celeryd
     CELERYD="/opt/Project/manage.py celeryd"
 
+    # Name of the projects settings module.
+    export DJANGO_SETTINGS_MODULE="settings"
+
 Available options
 ~~~~~~~~~~~~~~~~~~