mirror of
https://github.com/penpot/penpot.git
synced 2025-03-13 16:21:57 -05:00
misc: add stop command
This commit is contained in:
parent
8cd5d10197
commit
6a75eb893c
1 changed files with 12 additions and 2 deletions
14
manage.sh
14
manage.sh
|
@ -179,7 +179,12 @@ function run {
|
|||
fi
|
||||
|
||||
echo "Running production images..."
|
||||
sudo docker-compose -p uxbox-release -f ./docker/docker-compose.yml up -d
|
||||
sudo docker-compose -p uxbox -f ./docker/docker-compose.yml up -d
|
||||
}
|
||||
|
||||
function stop {
|
||||
echo "Stoping containers..."
|
||||
sudo docker-compose -p uxbox -f ./docker/docker-compose.yml stop -d
|
||||
}
|
||||
|
||||
function usage {
|
||||
|
@ -196,7 +201,8 @@ function usage {
|
|||
echo "- build-develop-frontend-image Build a 'develop' docker images for frontend only"
|
||||
echo "- build-release-frontend-image Build a 'production ready' docker images for frontend only"
|
||||
echo "- build-release-backend-image Build a 'production ready' docker images for backend only"
|
||||
echo "- run Run 'production ready' docker images for both backend and frontend using docker compose"
|
||||
echo "- run Run 'production ready' docker compose"
|
||||
echo "- stop Stop 'production ready' docker compose"
|
||||
}
|
||||
|
||||
case $1 in
|
||||
|
@ -232,9 +238,13 @@ case $1 in
|
|||
build-release-backend-image)
|
||||
build-release-backend-image
|
||||
;;
|
||||
|
||||
run)
|
||||
run
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
|
||||
*)
|
||||
usage
|
||||
|
|
Loading…
Add table
Reference in a new issue