From e359b2c44123b508ee45422a30ec617ed183d7b0 Mon Sep 17 00:00:00 2001 From: Robert Waffen Date: Fri, 21 Jun 2024 09:33:26 +0200 Subject: [PATCH 1/2] enable YJIT Signed-off-by: Robert Waffen --- Dockerfile | 1 + 1 file changed, 1 insertion(+) 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 From 87adce4ec74cb8dcc67b3fbec917578bb29a8929 Mon Sep 17 00:00:00 2001 From: Robert Waffen Date: Fri, 21 Jun 2024 09:33:52 +0200 Subject: [PATCH 2/2] Rack::Server is deprecated switch to Rackup Signed-off-by: Robert Waffen --- bin/fake_puppet_db | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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)