minor changes to discourse bench

Ruby master is not compatible with bootsnap atm
This commit is contained in:
Sam 2018-02-19 17:00:28 +11:00
parent e5cec28eae
commit 73a492f721
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -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