From 2904ee23bfc1a442b801f0d35e8e49d51a6d47b6 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sat, 19 Aug 2017 14:38:31 +0900 Subject: Make `restart` and `dev:cache` tasks work when customizing pid file path 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 --- railties/lib/rails/tasks/restart.rake | 1 - 1 file changed, 1 deletion(-) (limited to 'railties/lib/rails/tasks') diff --git a/railties/lib/rails/tasks/restart.rake b/railties/lib/rails/tasks/restart.rake index 5b6bb8ddd6..074e3e89a1 100644 --- a/railties/lib/rails/tasks/restart.rake +++ b/railties/lib/rails/tasks/restart.rake @@ -5,6 +5,5 @@ task :restart do verbose(false) do mkdir_p "tmp" touch "tmp/restart.txt" - rm_f "tmp/pids/server.pid" end end -- cgit v1.2.3