Skip to content

Commit 74f79a7

Browse files
committed
fix(task): add delay parameter to open-url-with-delay calls
1 parent 53c38d7 commit 74f79a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

task

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ start() {
11601160

11611161
if [[ "$1" =~ "admin" ]]; then
11621162
echo 'Open http://localhost:8000 url in your browser.'
1163-
open-url-with-delay "http://localhost:8000" & $COMPOSE_COMMAND up -d admin
1163+
open-url-with-delay "http://localhost:8000" 2 & $COMPOSE_COMMAND up -d admin
11641164
fi
11651165

11661166
if [[ "$1" =~ "db" ]]; then
@@ -1174,7 +1174,7 @@ start() {
11741174

11751175
if [[ "$1" =~ "mailpit" ]]; then
11761176
echo 'Open http://localhost:8025 url in your browser.'
1177-
open-url-with-delay "http://localhost:8025" & $COMPOSE_COMMAND up -d mailpit
1177+
open-url-with-delay "http://localhost:8025" 2 & $COMPOSE_COMMAND up -d mailpit
11781178
fi
11791179

11801180
if [[ "$1" =~ "source" ]]; then
@@ -1189,7 +1189,7 @@ start() {
11891189
done
11901190

11911191
echo "Open http://localhost:$port url in your browser."
1192-
open-url-with-delay "http://localhost:$port/web?debug=1&db=$database" &
1192+
open-url-with-delay "http://localhost:$port/web?debug=1&db=$database" 2 &
11931193
odoo --database="$database" --config "$ODOO_RC" \
11941194
--http-port="$port" --addons-path="$ADDONS_PATH" --dev=all --log-level="$LOG_LEVEL"
11951195
fi
@@ -1206,15 +1206,15 @@ start() {
12061206
done
12071207

12081208
echo "Open http://localhost:$port url in your browser."
1209-
open-url-with-delay "http://localhost:$port/web?debug=1&db=$database" &
1209+
open-url-with-delay "http://localhost:$port/web?debug=1&db=$database" 2 &
12101210
odoo --database="$database" --config "$ODOO_RC" \
12111211
--http-port="$port" --dev=all --log-level="$LOG_LEVEL"
12121212
fi
12131213

12141214
if [[ "$1" =~ "odoo" ]]; then
12151215
echo "Start Odoo container ${CONTAINER_REGISTRY}/${CONTAINER_TAG}"
12161216
echo 'Open http://localhost:8069 url in your browser.'
1217-
open-url-with-delay "http://localhost:8069" & $COMPOSE_COMMAND up -d odoo
1217+
open-url-with-delay "http://localhost:8069" 2 & $COMPOSE_COMMAND up -d odoo
12181218
fi
12191219
}
12201220

0 commit comments

Comments
 (0)