2013-10-10 5 views
13

मैं स्थानीय रूप से फूल का उपयोग कर रहा हूं और यह सेटअप और चलाने के लिए काफी आसान लगता है, लेकिन मैं नहीं देख सकता कि मैं इसे उत्पादन वातावरण में कैसे स्थापित करूंगा।मैं Django Celery Flower Monitoring को प्रमाणीकरण और एंडपॉइंट कैसे जोड़ूं?

विशेष रूप से, मैं प्रमाणीकरण कैसे जोड़ सकता हूं और मैं इसे एक्सेस करने के लिए एक यूआरएल कैसे परिभाषित करूं?

+0

आप कृपया celeryd के साथ सेटअप फूल करने के लिए मदद कर सकते हैं .... असल में मैं चला रहा हूँ अजवाइन:

नीचे देखें 'अजवाइन फूल' द्वारा फूल चलाएं- एक 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

मैंने बाहरी आईपी के साथ-साथ 0.0.0.0 दोनों की कोशिश की, लेकिन सफल नहीं हुआ। – ahujamoh

संबंधित मुद्दे