Skip to content

Commit

Permalink
Allow user to specify listening port
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Oct 17, 2024
1 parent 897a2a9 commit 966f252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/derailed_benchmarks/load_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@

DERAILED_APP = DerailedBenchmarks.add_auth(Object.class_eval { remove_const(:DERAILED_APP) })
if server = ENV["USE_SERVER"]
@port = (3000..3900).to_a.sample
@port = ENV.fetch("USE_PORT") { (3000..3900).to_a.sample }
puts "Port: #{ @port.inspect }"
puts "Server: #{ server.inspect }"
thread = Thread.new do
Expand Down

0 comments on commit 966f252

Please sign in to comment.