Skip to content

Commit

Permalink
fix: add REDIS_URL so rq-dashboard is configured (#1990)
Browse files Browse the repository at this point in the history
* fix: add REDIS_URL so rq-dashboard is configured

* fix: redis url format.

Co-authored-by: Yurii Biurher <yurii.biurher@zorallabs.com>
  • Loading branch information
teleyinex and jokruger committed Jan 31, 2021
1 parent e46dff8 commit 029f73e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pybossa/core.py
Expand Up @@ -326,7 +326,7 @@ def setup_blueprints(app):

# from rq_dashboard import RQDashboard
import rq_dashboard
app.config.from_object(rq_dashboard.default_settings)
#app.config.from_object(rq_dashboard.default_settings)
rq_dashboard.blueprint.before_request(is_admin)
app.register_blueprint(rq_dashboard.blueprint, url_prefix="/admin/rq",
redis_conn=sentinel.master)
Expand Down
2 changes: 2 additions & 0 deletions settings_test.py
Expand Up @@ -34,6 +34,8 @@
REDIS_CACHE_ENABLED = False
REDIS_SENTINEL = [('localhost', 26379)]
REDIS_KEYPREFIX = 'pybossa_cache'
# For RQ-DASHBOARD
REDIS_URL = 'redis://localhost:6379'
WTF_CSRF_ENABLED = False
WTF_CSRF_SSL_STRICT = False
TESTING = True
Expand Down

0 comments on commit 029f73e

Please sign in to comment.