mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Avoid creation of unused containers
This commit is contained in:
+2
-2
@@ -57,8 +57,8 @@ elif [[ "$@" = "run" ]]; then
|
|||||||
$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 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
|
$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
|
elif [[ "$1" = "setup" ]]; then
|
||||||
$DOCKER_COMPOSE -f $COMPOSE_FILE run backend setup
|
$DOCKER_COMPOSE -f $COMPOSE_FILE run --rm backend setup
|
||||||
yes no | $DOCKER_COMPOSE -f $COMPOSE_FILE run frontend npm install
|
yes no | $DOCKER_COMPOSE -f $COMPOSE_FILE run --rm frontend npm install
|
||||||
elif [[ "$1" = "restart" ]]; then
|
elif [[ "$1" = "restart" ]]; then
|
||||||
$DOCKER_COMPOSE -f $COMPOSE_FILE restart "${@:2}"
|
$DOCKER_COMPOSE -f $COMPOSE_FILE restart "${@:2}"
|
||||||
elif [[ "$1" = "reset" ]]; then
|
elif [[ "$1" = "reset" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user