diff --git a/config/boot.rb b/config/boot.rb index 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.rb index 385fd7e5879..fa6e68d169c 100644 --- a/script/bench.rb +++ b/script/bench.rb @@ -214,7 +214,7 @@ begin FileUtils.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") end while port_available? @port