aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-04-19 10:46:23 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-04-19 10:46:23 +0200
commit8361ddbe2417318e1611524922bc4d15918cf4d3 (patch)
tree774811b5f9f4cde4defef2845582be31e34eea34
parentTest. (diff)
downloadnewspipe-8361ddbe2417318e1611524922bc4d15918cf4d3.tar.gz
newspipe-8361ddbe2417318e1611524922bc4d15918cf4d3.tar.bz2
newspipe-8361ddbe2417318e1611524922bc4d15918cf4d3.zip
The name of this conf variable should be 'DATABASE_URL' on Heroku.
-rw-r--r--conf.py2
-rw-r--r--conf/conf.cfg-sample2
2 files changed, 2 insertions, 2 deletions
diff --git a/conf.py b/conf.py
index 9017b6bf..5a549f3b 100644
--- a/conf.py
+++ b/conf.py
@@ -83,7 +83,7 @@ NB_WORKER = config.getint('misc', 'nb_worker')
WHOOSH_ENABLED = True
-SQLALCHEMY_DATABASE_URI = config.get('database', 'uri')
+SQLALCHEMY_DATABASE_URI = config.get('database', 'database_url')
HTTP_PROXY = config.get('feedparser', 'http_proxy')
USER_AGENT = config.get('feedparser', 'user_agent')
diff --git a/conf/conf.cfg-sample b/conf/conf.cfg-sample
index c594cd4a..7b28df14 100644
--- a/conf/conf.cfg-sample
+++ b/conf/conf.cfg-sample
@@ -8,7 +8,7 @@ python = python3.3
nb_worker = 5
log_level = info
[database]
-uri = postgres://pgsqluser:pgsqlpwd@127.0.0.1:5432/aggregator
+DATABASE_URL = postgres://pgsqluser:pgsqlpwd@127.0.0.1:5432/aggregator
[feedparser]
http_proxy =
user_agent = pyAggr3g470r (https://bitbucket.org/cedricbonhomme/pyaggr3g470r)
bgstack15