enhance piston script
This commit is contained in:
parent
a328b3eeda
commit
ccd6baf11a
21
piston
21
piston
|
@ -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
|
Loading…
Reference in New Issue