mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[skip ci] Update initialization guide start method to include change
- remove #print_boot_infornation method and method call
This commit is contained in:
parent
b50fed1bb0
commit
ee179088df
1 changed files with 4 additions and 10 deletions
|
@ -338,7 +338,6 @@ defined like this:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
def start
|
def start
|
||||||
print_boot_information
|
|
||||||
trap(:INT) { exit }
|
trap(:INT) { exit }
|
||||||
create_tmp_directories
|
create_tmp_directories
|
||||||
setup_dev_caching
|
setup_dev_caching
|
||||||
|
@ -349,9 +348,10 @@ def start
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def print_boot_information
|
def setup_dev_caching
|
||||||
...
|
if options[:environment] == "development"
|
||||||
puts "=> Run `rails server -h` for more startup options"
|
Rails::DevCaching.enable_by_argument(options[:caching])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_tmp_directories
|
def create_tmp_directories
|
||||||
|
@ -360,12 +360,6 @@ private
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def setup_dev_caching
|
|
||||||
if options[:environment] == "development"
|
|
||||||
Rails::DevCaching.enable_by_argument(options[:caching])
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def log_to_stdout
|
def log_to_stdout
|
||||||
wrapped_app # touch the app so the logger is set up
|
wrapped_app # touch the app so the logger is set up
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue