未验证 提交 d204b514 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #37879 from tomily1/update-initialization-guide

[skip ci] Update initialization guide start method to include change
......@@ -338,7 +338,6 @@ defined like this:
```ruby
def start
print_boot_information
trap(:INT) { exit }
create_tmp_directories
setup_dev_caching
......@@ -349,9 +348,10 @@ def start
end
private
def print_boot_information
...
puts "=> Run `rails server -h` for more startup options"
def setup_dev_caching
if options[:environment] == "development"
Rails::DevCaching.enable_by_argument(options[:caching])
end
end
def create_tmp_directories
......@@ -360,12 +360,6 @@ private
end
end
def setup_dev_caching
if options[:environment] == "development"
Rails::DevCaching.enable_by_argument(options[:caching])
end
end
def log_to_stdout
wrapped_app # touch the app so the logger is set up
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册