This commit is contained in:
Bryan Ramos 2023-05-01 04:57:06 -04:00
parent fff6888373
commit aa16060f1c

View file

@ -47,9 +47,16 @@ penpot() {
case "$1" in
run)
sudo docker compose -p penpot -f ~/Documents/tools/penpot/docker-compose.yaml up -d
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
xdg-open "http://localhost:9001"
elif [[ "$OSTYPE" == "darwin"* ]]; then
open "http://localhost:9001"
fi
echo "Started penpot on http://localhost:9001"
;;
stop)
sudo docker compose -p penpot -f ~/Documents/tools/penpot/docker-compose.yaml down
echo "Stopping penpot"
;;
*)
echo "Usage: penpot {run|stop}"