File discourse.fix-puma-config.patch of Package discourse

Index: discourse/config/puma.rb
===================================================================
--- discourse.orig/config/puma.rb
+++ discourse/config/puma.rb
@@ -3,7 +3,7 @@
 if ENV['RAILS_ENV'] == 'production'
 
   # First, you need to change these below to your situation.
-  APP_ROOT = '/home/discourse/discourse'
+  APP_ROOT = '/srv/www/vhosts/discourse'
   num_workers = ENV["NUM_WEBS"].to_i > 0 ? ENV["NUM_WEBS"].to_i : 4
 
   # Second, you can choose how many threads that you are going to run at same time.
@@ -15,7 +15,6 @@ if ENV['RAILS_ENV'] == 'production'
   stdout_redirect "#{APP_ROOT}/log/puma.log", "#{APP_ROOT}/log/puma.err.log"
   pidfile "#{APP_ROOT}/tmp/pids/puma.pid"
   state_path "#{APP_ROOT}/tmp/pids/puma.state"
-  daemonize true
   preload_app!
 
 end
Index: discourse/config/sidekiq.yml
===================================================================
--- discourse.orig/config/sidekiq.yml
+++ discourse/config/sidekiq.yml
@@ -1,4 +1,10 @@
 ---
+production:
+  :concurrency: 10
+  :queues:
+    - [critical,5]
+    - [default, 3]
+    - [low,     2]
 development:
   :concurrency: 5
   :queues:
openSUSE Build Service is sponsored by