From cc3a43ec708bbccd9604c14965d4f84e082432ce Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Thu, 3 Dec 2020 13:13:04 +0000 Subject: [PATCH] make sure to remove dangling server.pid; remove one-off containers --- bin/compose | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/compose b/bin/compose index 2705f6ff11..e5f421fbe1 100755 --- a/bin/compose +++ b/bin/compose @@ -27,7 +27,8 @@ elif [[ "$@" = "start" ]]; then elif [[ "$@" = "run" ]]; then docker-compose -f $COMPOSE_FILE up -d frontend docker-compose -f $COMPOSE_FILE stop backend - docker-compose -f $COMPOSE_FILE run -p ${PORT:-3000}:3000 backend # run backend in TTY so you can debug using pry for instance + docker-compose -f $COMPOSE_FILE run --rm backend rm -f tmp/pids/server.pid # delete if necessary so new server can come up + docker-compose -f $COMPOSE_FILE run --rm -p ${PORT:-3000}:3000 --name rails backend # run backend in TTY so you can debug using pry for instance elif [[ "$1" = "setup" ]]; then docker-compose -f $COMPOSE_FILE run backend setup yes no | docker-compose -f $COMPOSE_FILE run frontend npm install