diff --git a/Dockerfile b/Dockerfile index 94b10293..f6401fce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,7 @@ ENV APP_HOME /hdm ENV RAILS_ENV production ENV HDM_PORT 3000 ENV HDM_HOST 0.0.0.0 +ENV RUBYOPT="--yjit" EXPOSE $HDM_PORT diff --git a/bin/fake_puppet_db b/bin/fake_puppet_db index 0f6e2e66..0b63db15 100755 --- a/bin/fake_puppet_db +++ b/bin/fake_puppet_db @@ -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)