mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 12:36:28 +02:00
enhance piston script
This commit is contained in:
parent
a328b3eeda
commit
ccd6baf11a
1 changed files with 22 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue