DEV: sets rack server to test env when using rake qunit:test (#7554)

This commit is contained in:
Joffrey JAFFEUX 2019-05-16 10:44:29 +02:00 committed by GitHub
parent d47bf8b6c4
commit 4a9756ff3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ task "qunit:test", [:timeout, :qunit_path] => :environment do |_, args|
Discourse.after_fork
Rack::Server.start(config: "config.ru",
AccessLog: [],
environment: 'test',
Port: port)
exit
end