Created
February 21, 2014 20:41
-
-
Save etehtsea/9143028 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jruby-1.7.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Rack::CommonLogger | |
require 'grape' | |
class ThreadSafetyDemo < Grape::API | |
get '/' do | |
'ololo' | |
end | |
end | |
run ThreadSafetyDemo | |
# bundle exec torqbox -E production | |
# siege -c 100 -v -t 100 0.0.0.0:8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'pry' | |
gem 'grape', github: 'intridea/grape' | |
gem 'torqbox' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GIT | |
remote: git://github.com/intridea/grape.git | |
revision: 4665792092763fc0f5c63da8c6cff87494a8bd2d | |
specs: | |
grape (0.7.0) | |
activesupport | |
builder | |
hashie (>= 1.2.0) | |
multi_json (>= 1.3.2) | |
multi_xml (>= 0.5.2) | |
rack (>= 1.3.0) | |
rack-accept | |
rack-mount | |
virtus (>= 1.0.0) | |
GEM | |
remote: https://rubygems.org/ | |
specs: | |
activesupport (4.0.3) | |
i18n (~> 0.6, >= 0.6.4) | |
minitest (~> 4.2) | |
multi_json (~> 1.3) | |
thread_safe (~> 0.1) | |
tzinfo (~> 0.3.37) | |
atomic (1.1.14-java) | |
axiom-types (0.0.5) | |
descendants_tracker (~> 0.0.1) | |
ice_nine (~> 0.9) | |
builder (3.2.2) | |
coderay (1.1.0) | |
coercible (1.0.0) | |
descendants_tracker (~> 0.0.1) | |
descendants_tracker (0.0.3) | |
equalizer (0.0.9) | |
ffi (1.9.3-java) | |
hashie (2.0.5) | |
i18n (0.6.9) | |
ice_nine (0.11.0) | |
method_source (0.8.2) | |
minitest (4.7.5) | |
multi_json (1.8.4) | |
multi_xml (0.5.5) | |
pry (0.9.12.6) | |
coderay (~> 1.0) | |
method_source (~> 0.8) | |
slop (~> 3.4) | |
pry (0.9.12.6-java) | |
coderay (~> 1.0) | |
method_source (~> 0.8) | |
slop (~> 3.4) | |
spoon (~> 0.0) | |
rack (1.5.2) | |
rack-accept (0.4.5) | |
rack (>= 0.4) | |
rack-mount (0.8.3) | |
rack (>= 1.0.0) | |
slop (3.4.7) | |
spoon (0.0.4) | |
ffi | |
thread_safe (0.1.3-java) | |
atomic | |
torqbox (0.1.7-java) | |
rack (>= 1.4.0, < 2.0) | |
tzinfo (0.3.38) | |
virtus (1.0.1) | |
axiom-types (~> 0.0.5) | |
coercible (~> 1.0) | |
descendants_tracker (~> 0.0.1) | |
equalizer (~> 0.0.7) | |
PLATFORMS | |
java | |
DEPENDENCIES | |
grape! | |
pry | |
torqbox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment