Skip to content

Commit

Permalink
Use puma as the default development server, if available
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Dec 16, 2015
1 parent bf16ec2 commit ae48ea6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion railties/lib/rails/commands/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def parse!(args)
option_parser(options).parse! args

options[:log_stdout] = options[:daemonize].blank? && (options[:environment] || Rails.env) == "development"
options[:server] = args.shift
options[:server] = args.shift || defined?(Puma) ? 'puma' : nil
options
end

Expand Down
6 changes: 3 additions & 3 deletions railties/lib/rails/generators/rails/app/templates/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ source 'https://rubygems.org'
<% end -%>
<% end -%>

# Use Puma as the app server
gem 'puma', github: 'puma/puma' # FIXME: Release Rack 2 compatible Puma

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

Expand Down

0 comments on commit ae48ea6

Please sign in to comment.