mirror of https://github.com/rails/rails
Merge pull request #34997 from alkesh26/typo-fix-webserver
Replaced webserver with web server
This commit is contained in:
commit
e26f0658da
|
@ -16,7 +16,7 @@ port ENV.fetch("PORT") { 3000 }
|
|||
environment ENV.fetch("RAILS_ENV") { "development" }
|
||||
|
||||
# Specifies the number of `workers` to boot in clustered mode.
|
||||
# Workers are forked webserver processes. If using threads and workers together
|
||||
# Workers are forked web server processes. If using threads and workers together
|
||||
# the concurrency of the application would be max `threads` * `workers`.
|
||||
# Workers do not work on JRuby or Windows (both of which do not support
|
||||
# processes).
|
||||
|
|
|
@ -62,7 +62,7 @@ module ActionController
|
|||
assert_nil @response.headers["Content-Length"]
|
||||
end
|
||||
|
||||
def test_headers_cannot_be_written_after_webserver_reads
|
||||
def test_headers_cannot_be_written_after_web_server_reads
|
||||
@response.stream.write "omg"
|
||||
latch = Concurrent::CountDownLatch.new
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ port ENV.fetch("PORT") { 3000 }
|
|||
environment ENV.fetch("RAILS_ENV") { "development" }
|
||||
|
||||
# Specifies the number of `workers` to boot in clustered mode.
|
||||
# Workers are forked webserver processes. If using threads and workers together
|
||||
# Workers are forked web server processes. If using threads and workers together
|
||||
# the concurrency of the application would be max `threads` * `workers`.
|
||||
# Workers do not work on JRuby or Windows (both of which do not support
|
||||
# processes).
|
||||
|
|
|
@ -51,10 +51,10 @@ For instance, it will not impact low-level caching, that we address
|
|||
### Page Caching
|
||||
|
||||
Page caching is a Rails mechanism which allows the request for a generated page
|
||||
to be fulfilled by the webserver (i.e. Apache or NGINX) without having to go
|
||||
to be fulfilled by the web server (i.e. Apache or NGINX) without having to go
|
||||
through the entire Rails stack. While this is super fast it can't be applied to
|
||||
every situation (such as pages that need authentication). Also, because the
|
||||
webserver is serving a file directly from the filesystem you will need to
|
||||
web server is serving a file directly from the filesystem you will need to
|
||||
implement cache expiration.
|
||||
|
||||
INFO: Page Caching has been removed from Rails 4. See the [actionpack-page_caching gem](https://github.com/rails/actionpack-page_caching).
|
||||
|
|
|
@ -35,7 +35,7 @@ application. Any Rack compliant web server should be using
|
|||
|
||||
### `rails server`
|
||||
|
||||
`rails server` does the basic job of creating a `Rack::Server` object and starting the webserver.
|
||||
`rails server` does the basic job of creating a `Rack::Server` object and starting the web server.
|
||||
|
||||
Here's how `rails server` creates an instance of `Rack::Server`
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ module Rails
|
|||
def gemfile_entries # :doc:
|
||||
[rails_gemfile_entry,
|
||||
database_gemfile_entry,
|
||||
webserver_gemfile_entry,
|
||||
web_server_gemfile_entry,
|
||||
assets_gemfile_entry,
|
||||
webpacker_gemfile_entry,
|
||||
javascript_gemfile_entry,
|
||||
|
@ -189,7 +189,7 @@ module Rails
|
|||
"Use #{options[:database]} as the database for Active Record"
|
||||
end
|
||||
|
||||
def webserver_gemfile_entry # :doc:
|
||||
def web_server_gemfile_entry # :doc:
|
||||
return [] if options[:skip_puma]
|
||||
comment = "Use Puma as the app server"
|
||||
GemfileEntry.new("puma", "~> 3.11", comment)
|
||||
|
|
|
@ -17,7 +17,7 @@ port ENV.fetch("PORT") { 3000 }
|
|||
environment ENV.fetch("RAILS_ENV") { "development" }
|
||||
|
||||
# Specifies the number of `workers` to boot in clustered mode.
|
||||
# Workers are forked webserver processes. If using threads and workers together
|
||||
# Workers are forked web server processes. If using threads and workers together
|
||||
# the concurrency of the application would be max `threads` * `workers`.
|
||||
# Workers do not work on JRuby or Windows (both of which do not support
|
||||
# processes).
|
||||
|
|
Loading…
Reference in New Issue