aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/command_line.md
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2015-01-03 19:20:54 +0100
committerRobin Dupret <robin.dupret@gmail.com>2015-01-03 19:42:07 +0100
commit1fd44213aa4485acdce54a1da1d7cd4aa0ac33b6 (patch)
tree6592f1b50ee77b5e1084406fa96e16b0952f6759 /guides/source/command_line.md
parent9b9ec0ded4f8f65e17c2af856d2e3baa5382a47a (diff)
downloadrails-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/command_line.md')
-rw-r--r--guides/source/command_line.md11
1 files changed, 5 insertions, 6 deletions
diff --git a/guides/source/command_line.md b/guides/source/command_line.md
index d14cdb93f2..7567a38aef 100644
--- a/guides/source/command_line.md
+++ b/guides/source/command_line.md
@@ -383,8 +383,8 @@ rake db:create # Create the database from config/database.yml for the c
rake log:clear # Truncates all *.log files in log/ to zero bytes (specify which logs with LOGS=test,development)
rake middleware # Prints out your Rack middleware stack
...
-rake tmp:clear # Clear session, cache, and socket files from tmp/ (narrow w/ tmp:sessions:clear, tmp:cache:clear, tmp:sockets:clear)
-rake tmp:create # Creates tmp directories for sessions, cache, sockets, and pids
+rake tmp:clear # Clear cache and socket files from tmp/ (narrow w/ tmp:cache:clear, tmp:sockets:clear)
+rake tmp:create # Creates tmp directories for cache, sockets, and pids
```
INFO: You can also use `rake -T` to get the list of tasks.
@@ -496,15 +496,14 @@ Rails comes with a test suite called Minitest. Rails owes its stability to the u
### `tmp`
-The `Rails.root/tmp` directory is, like the *nix /tmp directory, the holding place for temporary files like sessions (if you're using a file store for sessions), process id files, and cached actions.
+The `Rails.root/tmp` directory is, like the *nix /tmp directory, the holding place for temporary files like process id files and cached actions.
The `tmp:` namespaced tasks will help you clear and create the `Rails.root/tmp` directory:
* `rake tmp:cache:clear` clears `tmp/cache`.
-* `rake tmp:sessions:clear` clears `tmp/sessions`.
* `rake tmp:sockets:clear` clears `tmp/sockets`.
-* `rake tmp:clear` clears all the three: cache, sessions and sockets.
-* `rake tmp:create` creates tmp directories for sessions, cache, sockets, and pids.
+* `rake tmp:clear` clears all cache and sockets files.
+* `rake tmp:create` creates tmp directories for cache, sockets and pids.
### Miscellaneous