piston/piston

23 lines
425 B
Bash
Executable File

#!/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 pull api
docker-compose up -d api
;;
clean-pkgs)
git clean -fqXd packages
;;
*)
node cli/index.js "$@"
;;
esac