Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database configuration doesn't work #14

Open
masm opened this issue Dec 16, 2014 · 0 comments
Open

Database configuration doesn't work #14

masm opened this issue Dec 16, 2014 · 0 comments

Comments

@masm
Copy link

masm commented Dec 16, 2014

After looking how a redis connection is setup on environment.js, I've tried to the following change to configure a different host for redis:

diff --git a/config/database.js b/config/database.js
index e0003f1..9d70faa 100644
--- a/config/database.js
+++ b/config/database.js
@@ -1,4 +1,4 @@
-module.exports = 
+module.exports =
   { "development":
     { "driver":   "redis-hq"
     , "prefix":   "dev"
@@ -6,7 +6,7 @@ module.exports =
     , "fulltext": {
         driver: 'reds'
     }
-    , "session": {database: 10}
+    , "session": {database: 10, host: "redis"}
     }
   , "test":
     { "driver":   "redis-hq"

but I still get a connection error with

UncaughtException: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED

How do I configure a different host? The docs mention that I need to change that file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant