A platform for community discussion. Free, open, simple.
minor changes to discourse bench
Sam73a492f72132
diff --git a/config/boot.rb b/config/boot.rbindex 929f1a62fe0..16ed53b095a 100644--- a/config/boot.rb+++ b/config/boot.rb@@ -10,7 +10,7 @@ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])-if ENV['RAILS_ENV'] != 'production'+if ENV['RAILS_ENV'] != 'production' && ENV['RAILS_ENV'] != 'profile'require 'bootsnap'Bootsnap.setup(diff --git a/script/bench.rb b/script/bench.rbindex 385fd7e5879..fa6e68d169c 100644--- a/script/bench.rb+++ b/script/bench.rb@@ -214,7 +214,7 @@ beginFileUtils.mkdir_p(File.join('tmp', 'pids'))spawn("bundle exec unicorn -c config/unicorn.conf.rb")else- spawn("bundle exec puma -p #{@port}")+ spawn("bundle exec puma -p #{@port} -e production")endwhile port_available? @port