mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
2904ee23bf
Originally, it hard-coded pid file path. It can not be removed when customizing pid file path. But rake task can not get pid file path. Therefore, do not remove file in rake task, makes it possible to judge whether it is restart from the argument of the command and removes the file in server command. Fixes #29306
9 lines
171 B
Ruby
9 lines
171 B
Ruby
# 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"
|
|
end
|
|
end
|