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`.
This commit is contained in:
Nicolas CARPi 2019-07-12 12:18:44 +02:00 committed by GitHub
parent 5ca822a7d8
commit 81a2a9fa12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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