John Topley’s Weblog

Rails Tip #5: Clean Up Using Rake

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.


Archives

  • Jan
  • Feb
  • Mar
  • Apr
  • May
  • Jun
  • Jul
  • Aug
  • Sep
  • Oct
  • Nov
  • Dec
  • 2019
  • 2018
  • 2017
  • 2016
  • 2015
  • 2014

More Archives


Sign In