diff --git a/tests/ruby/Dockerfile b/tests/ruby/Dockerfile index 899db80..7a460e8 100644 --- a/tests/ruby/Dockerfile +++ b/tests/ruby/Dockerfile @@ -13,4 +13,6 @@ EXPOSE 9292 #Ensure executable permissions RUN chmod +x start.sh -CMD ["./start.sh"] +CMD ["bundle", "exec", "rackup", "--host", "0.0.0.0", "--port", "9292"] +# CMD ["gunicorn", "main:app", "-b", "0.0.0.0:8000", "--workers=1"] +# CMD ["./start.sh"] diff --git a/tests/ruby/app.rb b/tests/ruby/app.rb index ab879cc..455a0c2 100644 --- a/tests/ruby/app.rb +++ b/tests/ruby/app.rb @@ -6,7 +6,5 @@ set :port, 9292 get '/' do - return 'no new relic txn' unless NewRelic::Agent::Tracer.current_transaction - 'hello, world!' end