2013-10-10 18 views
13

我一直在本地使用花卉,它似乎很容易設置和運行,但我看不到我將如何在生產環境中進行設置。如何將驗證和端點添加到Django芹菜花卉監測?

特別是,如何添加身份驗證以及如何定義要訪問的網址?

+0

能否請您設置花celeryd幫助.... 其實我正在芹菜:

見下文運行花'芹菜花-A proj --address = 127.0.0.1 --port = 5555'它不會運行... –

回答

11

對於自定義地址,請使用--address標誌。 對於身份驗證,請使用--basic_auth標誌。通過`蟒蛇manage.py celeryd`它運行良好,但是當我試圖

# celery flower --help 
Usage: /usr/local/bin/celery [OPTIONS] 

Options: 

    --address      run on the given address 
    --auth       regexp of emails to grant access 
    --basic_auth      colon separated user-password to enable 
            basic auth 
    --broker_api      inspect broker e.g. 
            http://guest:[email protected]:15672/api/ 
    --certfile      path to SSL certificate file 
    --db        flower database file (default flower.db) 
    --debug       run in debug mode (default False) 
    --help       show this help information 
    --inspect      inspect workers (default True) 
    --inspect_timeout    inspect timeout (in milliseconds) (default 
            1000) 
    --keyfile      path to SSL key file 
    --max_tasks      maximum number of tasks to keep in memory 
            (default 10000) (default 10000) 
    --persistent      enable persistent mode (default False) 
    --port       run on the given port (default 5555) 
    --url_prefix      base url prefix 
    --xheaders      enable support for the 'X-Real-Ip' and 
            'X-Scheme' headers. (default False) 
+0

我嘗試了外部IP以及0.0.0.0,但沒有成功。 – ahujamoh