Skip to content

Commit

Permalink
add redis-cli command (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin Fitz-Maurice authored May 21, 2021
1 parent 67f8be3 commit 49820d1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion bin/sail
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ if [ $# -gt 0 ]; then
else
sail_is_not_running
fi

# Initiate a PostgreSQL CLI terminal session within the "pgsql" container...
elif [ "$1" == "psql" ]; then
shift 1
Expand Down Expand Up @@ -276,6 +276,18 @@ if [ $# -gt 0 ]; then
sail_is_not_running
fi

# Initiate a Redis CLI terminal session within the "redis" container...
elif [ "$1" == "redis" ] ; then
shift 1

if [ "$EXEC" == "yes" ]; then
docker-compose exec \
redis \
redis-cli
else
sail_is_not_running
fi

# Share the site...
elif [ "$1" == "share" ]; then
shift 1
Expand Down

0 comments on commit 49820d1

Please sign in to comment.