mirror of
https://github.com/mastodon/mastodon.git
synced 2025-01-08 19:35:11 +01:00
Improve database config file
Enable us to have custom config for local development
This commit is contained in:
parent
3298c7e1c8
commit
cbf78a4896
@ -1,5 +1,9 @@
|
||||
default: &default
|
||||
adapter: postgresql
|
||||
username: <%= ENV['DB_USER'] || 'mastodon' %>
|
||||
password: <%= ENV['DB_PASS'] || '' %>
|
||||
host: <%= ENV['DB_HOST'] || 'localhost' %>
|
||||
port: <%= ENV['DB_PORT'] || 5432 %>
|
||||
pool: 17
|
||||
timeout: 5000
|
||||
encoding: unicode
|
||||
@ -18,7 +22,3 @@ test:
|
||||
production:
|
||||
<<: *default
|
||||
database: <%= ENV['DB_NAME'] || 'mastodon_production' %>
|
||||
username: <%= ENV['DB_USER'] || 'mastodon' %>
|
||||
password: <%= ENV['DB_PASS'] || '' %>
|
||||
host: <%= ENV['DB_HOST'] || 'localhost' %>
|
||||
port: <%= ENV['DB_PORT'] || 5432 %>
|
||||
|
Loading…
Reference in New Issue
Block a user