aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/tasks/restart.rake
blob: 7e15bb55a1f589344db4602ed7ea1d45facdd2d7 (plain) (blame)
1
2
3
4
5
6
desc "Restart app by touching tmp/restart.txt"
task :restart do
  FileUtils.mkdir_p('tmp')
  FileUtils.touch('tmp/restart.txt')
  FileUtils.rm_f('tmp/pids/server.pid')
end