Add ./piston logs
This commit is contained in:
parent
474c986879
commit
e5ac7a2acc
6
piston
6
piston
|
@ -19,6 +19,7 @@ case $1 in
|
||||||
echo "Commands:"
|
echo "Commands:"
|
||||||
echo " select <environment> Select the environment"
|
echo " select <environment> Select the environment"
|
||||||
echo " docker_compose <args...> Interact directly with the docker-compose for the selected environment"
|
echo " docker_compose <args...> Interact directly with the docker-compose for the selected environment"
|
||||||
|
echo " logs Show docker-compose logs"
|
||||||
echo
|
echo
|
||||||
echo " start Starts piston"
|
echo " start Starts piston"
|
||||||
echo " stop Stops piston"
|
echo " stop Stops piston"
|
||||||
|
@ -37,18 +38,19 @@ case $1 in
|
||||||
echo " clean-repo Remove all packages from local repo"
|
echo " clean-repo Remove all packages from local repo"
|
||||||
echo " build-pkg <package> <version> Build a package"
|
echo " build-pkg <package> <version> Build a package"
|
||||||
echo " rebuild Build and restart the docker container"
|
echo " rebuild Build and restart the docker container"
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
echo " Switch to developement environment for more info"
|
echo " Switch to developement environment for more info"
|
||||||
echo " > piston select dev"
|
echo " > piston select dev"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
||||||
select) echo "$2" > .piston_env ;;
|
select) echo "$2" > .piston_env ;;
|
||||||
docker_compose) shift; docker_compose "$@";;
|
docker_compose) shift; docker_compose "$@";;
|
||||||
|
logs) docker_compose logs -f ;;
|
||||||
|
|
||||||
restart) docker_compose restart ;;
|
restart) docker_compose restart ;;
|
||||||
start) docker_compose up -d ;;
|
start) docker_compose up -d ;;
|
||||||
|
|
Loading…
Reference in New Issue