mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-07 18:56:26 +02:00
Merge branch 'master' into websocket
This commit is contained in:
commit
7d05f4e305
47 changed files with 672 additions and 48 deletions
12
piston
12
piston
|
@ -23,22 +23,23 @@ case $1 in
|
|||
echo " start Starts piston"
|
||||
echo " stop Stops piston"
|
||||
echo " restart Restarts piston"
|
||||
echo " bash Opens a bash shell for the piston_api container"
|
||||
echo
|
||||
echo " update Fetches and applies latest updates"
|
||||
echo
|
||||
echo " <args..> Passthrough to piston cli tool"
|
||||
echo
|
||||
echo
|
||||
echo "Development Commands:"
|
||||
|
||||
|
||||
if [ $PISTON_ENV == dev ]; then
|
||||
|
||||
|
||||
echo " clean-pkgs Clean any package build artifacts on disk"
|
||||
echo " clean-repo Remove all packages from local repo"
|
||||
echo " build-pkg <package> <version> Build a package"
|
||||
echo " rebuild Build and restart the docker container"
|
||||
|
||||
else
|
||||
|
||||
|
||||
echo " Switch to developement environment for more info"
|
||||
echo " > piston select dev"
|
||||
|
||||
|
@ -52,6 +53,7 @@ case $1 in
|
|||
restart) docker_compose restart ;;
|
||||
start) docker_compose up -d ;;
|
||||
stop) docker_compose down ;;
|
||||
bash) docker_compose exec api /bin/bash ;;
|
||||
|
||||
rebuild) docker_compose build && docker_compose up -d ;;
|
||||
|
||||
|
@ -77,4 +79,4 @@ case $1 in
|
|||
cd ../
|
||||
node cli/index.js "$@"
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue