Skip to content

Commit 9b6b9d9

Browse files
committed
Detach (-d) in --wait mode
1 parent 4ac235b commit 9b6b9d9

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

stepup/start-dev-env.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ docker_compose_options=() # Array to hold the options for docker compose
4949
docker_compose_options+=("-f")
5050
docker_compose_options+=("${SCRIPT_DIR}/docker-compose.yml")
5151

52-
# Add some default options for the docker compose up command
53-
docker_compose_up_options+=("--wait") # Wait for the containers to be ready
54-
55-
5652
# Show value of STEPUP_VERSION and APP_ENV if set and process their values
5753
# Warn if these values are not set to unexpected values
5854
if [ -n "${STEPUP_VERSION}" ]; then
@@ -93,7 +89,7 @@ while [[ $# -gt 0 ]]; do
9389
echo ""
9490
echo "Options:"
9591
echo " -h, --help Show this help message"
96-
echo " -d Run docker compose up in detached mode"
92+
echo " -d Run docker compose up in detached mode (-d) with wait (--wait)"
9793
echo " <app>:<path> The <app> to override followed by the <path> to the local code for the app"
9894
echo ""
9995
echo " Any options after -- are passed to docker compose"
@@ -112,7 +108,7 @@ while [[ $# -gt 0 ]]; do
112108
-d | --detach)
113109
shift
114110
# add "-d" to docker_compose_up_options
115-
docker_compose_up_options+=("-d")
111+
docker_compose_up_options+=("--wait")
116112
;;
117113
--)
118114
# End of options for this script, everything after this is passed to docker compose

0 commit comments

Comments
 (0)