minor changes to discourse bench
Ruby master is not compatible with bootsnap atm
This commit is contained in:
parent
e5cec28eae
commit
73a492f721
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue