Point staging pkgdb urls at staging pkgdb2.

This commit is contained in:
Ralph Bean 2014-05-20 18:49:47 +00:00
parent 6944f0b8d4
commit 3eb1d43fe2
2 changed files with 9 additions and 1 deletions

View file

@ -32,7 +32,11 @@ config = {
# Stuff used for caching packagedb relations.
"fedbadges.rules.utils.use_pkgdb2": True,
"fedbadges.rules.utils.pkgdb_url": "https://admin.fedoraproject.org/pkgdb",
{% if env == 'staging' %}
"fedbadges.rules.utils.pkgdb_url": "https://admin.stg.fedoraproject.org/pkgdb/api",
{% else %}
"fedbadges.rules.utils.pkgdb_url": "https://admin.fedoraproject.org/pkgdb/api",
{% endif %}
"fedbadges.rules.cache": {
"backend": "dogpile.cache.dbm",
"expiration_time": 300,

View file

@ -24,7 +24,11 @@ config = {
# Some configuration for the rule processors
"fmn.rules.utils.use_pkgdb2": True,
{% if env == 'staging' %}
"fmn.rules.utils.pkgdb_url": "https://admin.stg.fedoraproject.org/pkgdb/api",
{% else %}
"fmn.rules.utils.pkgdb_url": "https://admin.fedoraproject.org/pkgdb/api",
{% endif %}
"fmn.rules.cache": {
"backend": "dogpile.cache.dbm",
"expiration_time": 300,