mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
Updated
This commit is contained in:
parent
fff6888373
commit
aa16060f1c
1 changed files with 22 additions and 15 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue