Rails comes with a number of Rake tasks for cleaning up various temporary files that get generated when you run your application.
- Clear all files in tmp/
rake tmp:clear
- Clear all files and directories in tmp/cache
rake tmp:cache:clear
- Clear all files in tmp/sessions
rake tmp:sessions:clear
- Clear all files in tmp/sockets
rake tmp:sockets:clear
- Rake can also clear the sessions table if you’re using one:
rake db:sessions:clear
Comments
There aren’t any comments on this post. Comments are closed.