diff --git a/bin/sail b/bin/sail index 4d00ff69..8671cf0c 100755 --- a/bin/sail +++ b/bin/sail @@ -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 @@ -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