aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/tasks/restart.rake
blob: 5b6bb8ddd6ce7d9966120b661161bfa93c8c1d36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

desc "Restart app by touching tmp/restart.txt"
task :restart do
  verbose(false) do
    mkdir_p "tmp"
    touch "tmp/restart.txt"
    rm_f "tmp/pids/server.pid"
  end
end