mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
6fc83f8efe
In restart.rake, the creation of tmp/restart.txt would fail if the tmp folder does not exist in the app. This is a problem because apps cloned using git would not have the tmp folder, as the folder is in .gitignore. This commit creates the tmp folder if it does not exist. Fixes #20299 [Yoong Kang Lim, Sunny Juneja]
5 lines
132 B
Ruby
5 lines
132 B
Ruby
desc "Restart app by touching tmp/restart.txt"
|
|
task :restart do
|
|
FileUtils.mkdir_p('tmp')
|
|
FileUtils.touch('tmp/restart.txt')
|
|
end
|