Skip to content

Commit

Permalink
simplify launch command
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler36 committed Oct 8, 2024
1 parent 4417773 commit 54c048c
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions commands/host/storybook
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,7 @@ startStorybookServer () {

# Open storybook in prefered browser. This assumes the server is running
launch () {
FULLURL="${DDEV_PRIMARY_URL}:6006"
case $OSTYPE in
linux-gnu)
if [[ ! -z "${GITPOD_INSTANCE_ID}" ]]; then
gp preview ${FULLURL}
else
xdg-open ${FULLURL}
fi
;;
"darwin"*)
open ${FULLURL}
;;
"win*"* | "msys"*)
start ${FULLURL}
;;
esac
ddev launch :6006
}


Expand Down

0 comments on commit 54c048c

Please sign in to comment.