Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added puma scroll; puma becomes default server

  • Loading branch information...
commit 49aef2556128a5c4e30fe92107e3af91af8be128 1 parent 202d951
@drnic authored
Showing with 23 additions and 11 deletions.
  1. +23 −0 scrolls/puma.rb
  2. +0 −11 scrolls/untested/puma.rb
View
23 scrolls/puma.rb
@@ -0,0 +1,23 @@
+gem 'puma'
+
+after_bundler do
+ gsub_file "config/environments/production.rb", "# config.threadsafe!", "config.threadsafe!"
+
+ gsub_file "script/rails", "require 'rails/commands'", <<-RUBY
+
+require 'rack/handler'
+Rack::Handler::WEBrick = Rack::Handler.get(:puma)
+
+require 'rails/commands'
+RUBY
+end
+
+__END__
+
+name: Puma
+description: Ruby web server built for speed & concurrency
+author: drnic
+website: http://puma.io
+
+category: deployment
+exclusive: appserver
View
11 scrolls/untested/puma.rb
@@ -1,11 +0,0 @@
-gem 'puma'
-
-__END__
-
-name: Puma
-description: Ruby web server built for speed & concurrency
-author: drnic
-website: http://puma.io
-
-category: deployment
-exclusive: appserver

0 comments on commit 49aef25

Please sign in to comment.
Something went wrong with that request. Please try again.