mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
DEV: Introduce TemporaryRedis
and unset DISCOURSE_*
env vars in the themes:isolated_test
rake task (#13401)
The `themes:isolated_test` rake task will now unset all `DISCOURSE_*` env variables if `UNSET_DISCOURSE_ENV_VARS` env var is set and will also spin up a temporary redis server so the unicorn web server that's spun up for the tests doesn't leak into the "main" redis server.
This commit is contained in:
@ -42,7 +42,10 @@ task "qunit:test", [:timeout, :qunit_path] do |_, args|
|
||||
"UNICORN_PID_PATH" => "#{Rails.root}/tmp/pids/unicorn_test_#{port}.pid", # So this can run alongside development
|
||||
"UNICORN_PORT" => port.to_s,
|
||||
"UNICORN_SIDEKIQS" => "0",
|
||||
"DISCOURSE_SKIP_CSS_WATCHER" => "1"
|
||||
"DISCOURSE_SKIP_CSS_WATCHER" => "1",
|
||||
"UNICORN_LISTENER" => "127.0.0.1:#{port}",
|
||||
"LOGSTASH_UNICORN_URI" => nil,
|
||||
"UNICORN_WORKERS" => "3"
|
||||
},
|
||||
"#{Rails.root}/bin/unicorn -c config/unicorn.conf.rb",
|
||||
pgroup: true
|
||||
|
Reference in New Issue
Block a user