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,7 +1,11 @@
|
|||||||
default: &default
|
default: &default
|
||||||
adapter: postgresql
|
adapter: postgresql
|
||||||
pool: 17
|
username: <%= ENV['DB_USER'] || 'mastodon' %>
|
||||||
timeout: 5000
|
password: <%= ENV['DB_PASS'] || '' %>
|
||||||
|
host: <%= ENV['DB_HOST'] || 'localhost' %>
|
||||||
|
port: <%= ENV['DB_PORT'] || 5432 %>
|
||||||
|
pool: 17
|
||||||
|
timeout: 5000
|
||||||
encoding: unicode
|
encoding: unicode
|
||||||
|
|
||||||
development:
|
development:
|
||||||
@ -18,7 +22,3 @@ test:
|
|||||||
production:
|
production:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: <%= ENV['DB_NAME'] || 'mastodon_production' %>
|
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