mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
This reverts commit 2e4056d18532435e6e68d79cceca5b8b280c6948. Unfortunately, this broke db:create and db:drop when multisite config wasn't present.
This commit is contained in:

committed by
GitHub

parent
2d6bd30dd8
commit
e0ece3a77e
@ -45,7 +45,7 @@ if ENV['RAILS_ENV'] == "test" && ENV['TEST_ENV_NUMBER']
|
||||
pid = Process.spawn("redis-server --dir tmp/test_data_#{n}/redis --port #{port}", out: "/dev/null")
|
||||
|
||||
ENV["DISCOURSE_REDIS_PORT"] = port.to_s
|
||||
ENV["RAILS_TEST_DB"] = "discourse_test_#{n}"
|
||||
ENV["RAILS_DB"] = "discourse_test_#{n}"
|
||||
|
||||
at_exit do
|
||||
Process.kill("SIGTERM", pid)
|
||||
|
Reference in New Issue
Block a user