enhance piston script

This commit is contained in:
Thomas Hobson 2021-04-25 15:04:01 +12:00
parent a328b3eeda
commit ccd6baf11a
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 22 additions and 1 deletions

21
piston
View File

@ -1,2 +1,23 @@
#!/usr/bin/env bash
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