Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan committed Jun 10, 2024
1 parent f6480da commit 2e47d23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
5 changes: 3 additions & 2 deletions tests/ruby/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ EXPOSE 9292
RUN chmod +x 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"]

# For local testing, run:
# curl http://0.0.0.0:9292
7 changes: 3 additions & 4 deletions tests/ruby/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

require 'sinatra'

set :bind, '0.0.0.0'
set :port, 9292

get '/' do
'hello, world!'
status = NewRelic::Agent::Tracer.current_transaction ? 'active' : 'inactive'

"Hello, World! New Relic is #{status}"
end
10 changes: 0 additions & 10 deletions tests/ruby/start.sh

This file was deleted.

0 comments on commit 2e47d23

Please sign in to comment.