enhance piston script
This commit is contained in:
parent
a328b3eeda
commit
ccd6baf11a
23
piston
23
piston
|
@ -1,2 +1,23 @@
|
|||
#!/usr/bin/env bash
|
||||
node cli/index.js "$@"
|
||||
|
||||
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