about summary refs log tree commit diff
path: root/streaming
diff options
context:
space:
mode:
authormasarakki <masaki182@gmail.com>2017-10-17 18:45:37 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-10-17 11:45:37 +0200
commit0e0c6b1b4bea4a45e8a19eac00c2f2d48681257c (patch)
treeca9e03f4b69f6c0e54c1eb9cb76a03304d2f6d79 /streaming
parent554c2fd8af79c173e81d7193ea649fa848076123 (diff)
use-DB_NAME-in-development (#5430)
Diffstat (limited to 'streaming')
-rw-r--r--streaming/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/index.js b/streaming/index.js
index 017073fa1..83903b89b 100644
--- a/streaming/index.js
+++ b/streaming/index.js
@@ -80,7 +80,7 @@ const startWorker = (workerId) => {
     development: {
       user:     process.env.DB_USER || pg.defaults.user,
       password: process.env.DB_PASS || pg.defaults.password,
-      database: 'mastodon_development',
+      database: process.env.DB_NAME || 'mastodon_development',
       host:     process.env.DB_HOST || pg.defaults.host,
       port:     process.env.DB_PORT || pg.defaults.port,
       max:      10,