Permalink
Browse files

Added puma scroll; puma becomes default server

  • Loading branch information...
1 parent 202d951 commit 49aef2556128a5c4e30fe92107e3af91af8be128 @drnic committed Mar 27, 2013
Showing with 23 additions and 11 deletions.
  1. +23 −0 scrolls/puma.rb
  2. +0 −11 scrolls/untested/puma.rb
View
@@ -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
@@ -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.