Skip to content

Commit

Permalink
Rack::Server is deprecated switch to Rackup
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Waffen <rw@betadots.de>
  • Loading branch information
rwaffen committed Jun 21, 2024
1 parent e359b2c commit 87adce4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions bin/fake_puppet_db
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
#!/usr/bin/env ruby
# begin
# load File.expand_path('../spring', __FILE__)
# rescue LoadError => e
# raise unless e.message.include?('spring')
# end

require 'rackup'
require_relative '../test/support/fake_puppet_db'

ENV["PIDFILE"] ||= "tmp/pids/fake_puppet_db.pid"

Rack::Server.start(app: FakePuppetDB.new, Host: 'localhost', Port: 8083)
Rackup::Server.start(app: FakePuppetDB.new, Host: 'localhost', Port: 8083)

0 comments on commit 87adce4

Please sign in to comment.