diff --git a/piston b/piston index 94b0fe1..405fa9b 100755 --- a/piston +++ b/piston @@ -1,2 +1,23 @@ #!/usr/bin/env bash -node cli/index.js "$@" \ No newline at end of file + +case $1 in + dev) + shift + docker-compose -f docker-compose.dev.yaml "$@" + ;; + prod) + shift + docker-compose -f docker-compose.yaml "$@" + ;; + update) + git pull + docker-compose build api + docker-compose up api -d + ;; + clean-pkgs) + git clean -fqXd packages + ;; + *) + node cli/index.js "$@" + ;; +esac \ No newline at end of file