Skip to content

Commit

Permalink
Inform user when running docker-compose down (#52)
Browse files Browse the repository at this point in the history
* echo docker-compose down

Spent many hours scratching my head not realizing that a service I knew wasn't working yet was causing me to not be able to run sail art migrate which was needed by the failed service

* Update sail

* Update sail

Co-authored-by: Taylor Otwell <[email protected]>
  • Loading branch information
ant32 and taylorotwell authored Feb 4, 2021
1 parent ce4861b commit 1c2d77a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/sail
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ fi
# Determine if Sail is currently up...
PSRESULT="$(docker-compose ps -q)"

if docker-compose ps | grep 'Exit' &> /dev/null; then
if docker-compose ps | grep 'Exit'; then
echo -e "${WHITE}Shutting down old Sail processes...${NC}" >&2

docker-compose down > /dev/null 2>&1

EXEC="no"
Expand Down

0 comments on commit 1c2d77a

Please sign in to comment.