mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 01:03:18 +08:00
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:
parent
5ca822a7d8
commit
81a2a9fa12
1 changed files with 1 additions and 1 deletions
2
Makefile
2
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue