diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2015-01-03 19:20:54 +0100 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2015-01-03 19:42:07 +0100 |
commit | 1fd44213aa4485acdce54a1da1d7cd4aa0ac33b6 (patch) | |
tree | 6592f1b50ee77b5e1084406fa96e16b0952f6759 /guides/source/initialization.md | |
parent | 9b9ec0ded4f8f65e17c2af856d2e3baa5382a47a (diff) | |
download | rails-1fd44213aa4485acdce54a1da1d7cd4aa0ac33b6.tar.gz rails-1fd44213aa4485acdce54a1da1d7cd4aa0ac33b6.tar.bz2 rails-1fd44213aa4485acdce54a1da1d7cd4aa0ac33b6.zip |
Remove the tmp/sessions folder and its clear task
Commit 1aea470 introduced this directory but this was at a time when the
default way to store sessions was on the file system under the tmp
directory.
Let's remove references to it from the documentation as well.
[Robin Dupret & yui-knk]
Diffstat (limited to 'guides/source/initialization.md')
-rw-r--r-- | guides/source/initialization.md | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/guides/source/initialization.md b/guides/source/initialization.md index 0acf094f71..a93ceb7fb5 100644 --- a/guides/source/initialization.md +++ b/guides/source/initialization.md @@ -359,7 +359,7 @@ private end def create_tmp_directories - %w(cache pids sessions sockets).each do |dir_to_make| + %w(cache pids sockets).each do |dir_to_make| FileUtils.mkdir_p(File.join(Rails.root, 'tmp', dir_to_make)) end end @@ -375,13 +375,12 @@ private end ``` -This is where the first output of the Rails initialization happens. This -method creates a trap for `INT` signals, so if you `CTRL-C` the server, -it will exit the process. As we can see from the code here, it will -create the `tmp/cache`, `tmp/pids`, `tmp/sessions` and `tmp/sockets` -directories. It then calls `wrapped_app` which is responsible for -creating the Rack app, before creating and assigning an -instance of `ActiveSupport::Logger`. +This is where the first output of the Rails initialization happens. This method +creates a trap for `INT` signals, so if you `CTRL-C` the server, it will exit the +process. As we can see from the code here, it will create the `tmp/cache`, +`tmp/pids`, and `tmp/sockets` directories. It then calls `wrapped_app` which is +responsible for creating the Rack app, before creating and assigning an instance +of `ActiveSupport::Logger`. The `super` method will call `Rack::Server.start` which begins its definition like this: |