DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Rake Task For Restart Rails Application Runed On Mod_rails
amespace :passenger do
desc "Restart Application"
task :restart do
puts `touch tmp/restart.txt`
end
end






Comments
Snippets Manager replied on Sun, 2007/06/10 - 2:26pm
require 'fileutils' namespace :passenger do desc "Restart Application" task :restart do FileUtils.touch "#{RAILS_ROOT}/tmp/restart.txt" end end