Skip to content

Commit 9b7dd9f

Browse files
geropliQQBot
andauthored
[dev] Use "ping" in redis-cli, which is compatible with newer versions (#20989)
* [dev] Use "-ping" in redis-cli, which is compatible with newer versions * Fix ping invocation Co-authored-by: iQQBot <[email protected]> --------- Co-authored-by: iQQBot <[email protected]>
1 parent a31ae29 commit 9b7dd9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"start-testdb": "leeway run components/gitpod-db:init-testdb",
2727
"start-spicedb": "leeway run components/spicedb:start-spicedb",
2828
"stop-spicedb": "leeway run components/spicedb:stop-spicedb",
29-
"start-redis": "if redis-cli -h ${REDIS_HOST:-0.0.0.0} -e ping; then echo 'Redis is already running.'; else docker run --rm --name test-redis -p 6379:6379 -d redis; fi",
29+
"start-redis": "if redis-cli -h ${REDIS_HOST:-0.0.0.0} ping; then echo 'Redis is already running.'; else docker run --rm --name test-redis -p 6379:6379 -d redis; fi",
3030
"stop-redis": "docker stop test-redis || true",
3131
"telepresence": "telepresence --swap-deployment server --method inject-tcp --run yarn start-inspect"
3232
},

0 commit comments

Comments
 (0)