Skip to content
Snippets Groups Projects
Commit d307b1c4 authored by Rory Jennings's avatar Rory Jennings
Browse files

feat: add --logs flag to some commands

parent d9db562d
No related branches found
No related tags found
1 merge request!1feat: add --logs flag to some commands
......@@ -29,6 +29,10 @@ case "$1" in
;;
up)
docker-compose up -d
if [ "$2" == '--logs' ]
then
docker-compose logs -f
fi
;;
build)
shift
......@@ -36,9 +40,17 @@ case "$1" in
;;
restart)
docker-compose down && docker-compose up -d
if [ "$2" == '--logs' ]
then
docker-compose logs -f
fi
;;
rebuild)
docker-compose down && docker-compose build && docker-compose up -d
if [ "$2" == '--logs' ]
then
docker-compose logs -f
fi
;;
cq|code-quality)
shift
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment