mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Switch Development Database via ENV var
This is useful if you use multiple development databases locally and don't want to constantly `db:drop db:create` into `discourse_development`. Simply add `DISCOURSE_DEV_DB=whatever_db` as an ENV variable and Discourse will use it in development mode.
This commit is contained in:
parent
be1cce503c
commit
153eca23e3
@ -1,7 +1,7 @@
|
||||
development:
|
||||
prepared_statements: false
|
||||
adapter: postgresql
|
||||
database: discourse_development
|
||||
database: <%= ENV['DISCOURSE_DEV_DB'] || 'discourse_development' %>
|
||||
min_messages: warning
|
||||
pool: 5
|
||||
timeout: 5000
|
||||
|
Loading…
Reference in New Issue
Block a user