From 81a2a9fa121a82beda25b4cb54c688b61f9e388d Mon Sep 17 00:00:00 2001 From: Nicolas CARPi <3043706+NicolasCARPi@users.noreply.github.com> Date: Fri, 12 Jul 2019 12:18:44 +0200 Subject: [PATCH] Improve "make run" command Using the "-f" flag on "rm" makes it exit silently and with success if the file is not here. This little change prevents the user running the command from seeing: `rm: cannot remove 'tmp/pids/server.pid': No such file or directory`. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index baa712ca2..0f9f92704 100644 --- a/Makefile +++ b/Makefile @@ -56,7 +56,7 @@ rails-production: @docker-compose -f docker-compose.production.yml run --rm web $(cmd) run: - rm tmp/pids/server.pid || true + rm -f tmp/pids/server.pid @docker-compose up -d @docker attach scinote_web_development