mirror of
https://github.com/AppFlowy-IO/AppFlowy-Cloud.git
synced 2025-04-19 03:24:42 -04:00
* chore: rename folder * chore: add script to remove redis stream * chore: add script to remove redis stream * chore: fix ci
19 lines
No EOL
456 B
Bash
Executable file
19 lines
No EOL
456 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -x
|
|
set -eo pipefail
|
|
|
|
RUNNING_CONTAINER=$(docker ps --filter 'name=appflowy_redis' --format '{{.ID}}')
|
|
if [[ -n $RUNNING_CONTAINER ]]; then
|
|
echo >&2 "there is a redis container already running, kill it with"
|
|
echo >&2 " docker kill ${RUNNING_CONTAINER}"
|
|
exit 1
|
|
fi
|
|
|
|
# Launch Redis using Docker
|
|
docker run \
|
|
-p "6379:6379" \
|
|
-d \
|
|
--name "appflowy_redis_$(date '+%s')" \
|
|
redis:7
|
|
|
|
>&2 echo "Redis is ready to go!" |